Validate the benchmarking setup #6
Workflow file for this run
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: benchmarks-validate | |
| run-name: Validate the benchmarking setup | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "v*x" | |
| tags: | |
| - "v*" | |
| pull_request: | |
| branches: | |
| - "*" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| env: | |
| # Lets us manually bump the cache to rebuild | |
| ENV_CACHE_BUILD: "0" | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install run dependencies | |
| run: pip install asv nox!=2025.05.01 | |
| - name: Cache environment directories | |
| id: cache-env-dir | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .nox | |
| benchmarks/.asv/env | |
| $CONDA/pkgs | |
| key: ${{ runner.os }}-${{ hashFiles('requirements/') }}-${{ env.ENV_CACHE_BUILD }} | |
| - name: Validate setup | |
| run: nox -s benchmarks -- validate |