name: CI on: push: branches: [main] pull_request: # Fork PRs get a read-only token; nothing in CI needs more. permissions: contents: read # A new push to a PR cancels the in-flight run for that PR. concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - uses: astral-sh/setup-uv@v7 - run: uv sync --group dev - run: uv run ruff check . - run: uv run ruff format --check . - run: uv run pyright test: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v7 - uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.python-version }} - run: uv sync --group dev - run: uv run pytest