Skip to content

Update actions/checkout action to v6 #20

Update actions/checkout action to v6

Update actions/checkout action to v6 #20

Workflow file for this run

name: Test
on: [push, pull_request]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
python-version: "3.12"
- name: Install dependencies
run: |
uv sync --group dev
- name: Run ruff linter
run: |
uv run ruff check .
- name: Run ruff formatter
run: |
uv run ruff format --check .
test:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Set up uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync --group test
- name: Run tests
run: |
uv run python -m pytest