Bump the actions group across 1 directory with 6 updates #1223
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: | |
| workflow_dispatch: | |
| # Allow one concurrent deployment | |
| concurrency: | |
| group: ${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: test ${{ matrix.py }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| py: | |
| - "3.13" | |
| - "3.12" | |
| - "3.11" | |
| - "3.10" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| python-version: ${{ matrix.py }} | |
| - uses: dtolnay/[email protected] | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: uv sync --extra test --locked | |
| - run: uv run pytest --benchmark-disable -vvv --durations=10 | |
| mypy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - uses: dtolnay/[email protected] | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: uv sync --extra test --locked | |
| - run: make mypy | |
| - run: make stubtest | |
| benchmark: | |
| runs-on: ${{ matrix.runner }} | |
| strategy: | |
| matrix: | |
| # Run on codspeed for walltime and ubuntu for instrumenentation | |
| runner: [ ubuntu-latest, codspeed-macro ] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: ".python-version" | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - uses: dtolnay/[email protected] | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: | | |
| export UV_PROJECT_ENVIRONMENT="${pythonLocation}" | |
| uv sync --extra test --locked | |
| - uses: CodSpeedHQ/[email protected] | |
| with: | |
| token: ${{ secrets.CODSPEED_TOKEN }} | |
| # allow updating snapshots due to indeterministic benchmarks | |
| run: pytest -vvv --snapshot-update --durations=10 | |
| mode: ${{ matrix.runner == 'ubuntu-latest' && 'instrumentation' || 'walltime' }} | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - uses: dtolnay/[email protected] | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install graphviz | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y graphviz | |
| - run: uv sync --extra docs --locked | |
| - run: make docs |