| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Lint | |
| run: uv run --python ${{ matrix.python-version }} ruff check . | |
| - name: Run tests | |
| run: uv run --python ${{ matrix.python-version }} --extra api pytest -q | |