Run Benchmarks #1
This file contains 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: 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@v2 | |
- name: Set up Conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: 12 # Adjust Python version as needed | |
- name: Install package with pip | |
run: pip install -e . | |
- name: Install benchmark dependencies | |
run: pip install asv | |
- name: Run ASV benchmarks | |
run: asv run HASHFILE:hashestobenchmark.txt | |
- name: Push ASV results to gh-pages | |
run: asv gh-pages |