-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.15 KB
/
run_benchmarks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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: Downgrade conda
run: conda install conda=24.1
shell: bash
- name: Install package with pip
run: |
pip install .
shell: bash
- name: Install ASV
run: |
pip install asv
shell: bash
- name: Run ASV benchmarks
run: |
asv machine --yes
asv run HASHFILE:hashestobenchmark.txt
- name: Push ASV results to gh-pages
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git fetch
git pull
asv publish
asv gh-pages