Skip to content

Run Benchmarks

Run Benchmarks #12

name: Run Benchmarks
on:
workflow_dispatch: # Manual trigger
schedule:
- cron: '0 0 1 * *' # Runs at midnight on the 1st of every month
jobs:
benchmark:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.11"
miniconda-version: "latest"
- name: Show conda version
run: conda --version
shell: bash
- name: Downgrade conda
run: conda install conda=24.1
shell: bash
- name: Install package with pip
run: pip install .
- name: Run ASV benchmarks
run: |
asv machine --yes
asv run HASHFILE:hashestobenchmark.txt
- name: Push ASV results to gh-pages
run: asv gh-pages