Added competitior github link. #3
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 ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python pin ${{ matrix.python-version }} | |
| # Fails if uv.lock is missing or drifts from pyproject.toml, so the exact, | |
| # hash-pinned dependency tree is what actually gets installed. | |
| - name: Install dependencies (hash-locked) | |
| run: uv sync --locked | |
| - name: Dependency security audit | |
| run: uvx pip-audit | |
| - name: Run unit tests | |
| run: uv run pytest | |
| - name: Lint & hygiene (pre-commit) | |
| run: uvx pre-commit run --all-files |