Skip to content

PLT-1209 security(gha): Pin all github actions to a fixed sha via ratchet #18

PLT-1209 security(gha): Pin all github actions to a fixed sha via ratchet

PLT-1209 security(gha): Pin all github actions to a fixed sha via ratchet #18

Workflow file for this run

name: Test
on: ["pull_request"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # ratchet:actions/checkout@v4
- name: Ruff Check
uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # ratchet:astral-sh/ruff-action@v3
- name: Ruff Format
uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # ratchet:astral-sh/ruff-action@v3
with:
args: "format --check --diff"
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # ratchet:actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # ratchet:astral-sh/setup-uv@v4
- name: Set up Python ${{ matrix.python }}
run: uv python install ${{ matrix.python }}
- name: Install deps
run: uv sync --dev
- name: Run tests
run: uv run pytest test