Skip to content

Validate the benchmarking setup #6

Validate the benchmarking setup

Validate the benchmarking setup #6

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