Merge pull request #44 from randileeharper/fix/issues-33-34-35 #34
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: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| # Dynamic version (hatch-vcs/setuptools-scm) would drift on every commit | |
| # after a tag, breaking `uv sync --locked`. Pin a fixed version so the | |
| # lockfile validation is deterministic regardless of git state. Release | |
| # builds use the real tag-derived version (see release.yml). | |
| SETUPTOOLS_SCM_PRETEND_VERSION: "0.0.0" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v8.2.0 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --locked | |
| - name: Pytest | |
| run: uv run pytest -q |