Merge pull request #2 from tjayasinghe/feat/phase2-pdm #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: test (${{ matrix.os }}, py${{ matrix.python }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| python: ["3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - name: Create environment | |
| run: uv venv --python ${{ matrix.python }} | |
| - name: Install | |
| run: uv pip install -e ".[dev]" | |
| - name: Test (GPU tests auto-skip without a device) | |
| run: uv run pytest -q | |
| lint: | |
| name: lint + types | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - name: Create environment | |
| run: uv venv --python 3.12 | |
| - name: Install | |
| run: uv pip install -e ".[dev]" | |
| - name: Ruff | |
| run: uv run ruff check src tests | |
| - name: Mypy | |
| run: uv run mypy |