-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (48 loc) · 1.4 KB
/
benchmark.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
48
49
50
51
name: Benchmark
on:
push: { branches: [ "master" ] }
pull_request: { branches: [ "master" ] }
concurrency:
group: benchmark-${{ github.ref }}
cancel-in-progress: true
jobs:
asv:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest" }
- name: Install dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test -f environment.yml
conda list
- name: Checkout historic performance data
uses: actions/checkout@v2
with:
path: .asv/results
ref: asv
- name: Run benchmarks
uses: flatsurf/actions/asv@main
- name: Update historic performance data
uses: EndBug/add-and-commit@v5
with:
author_name: asv bot
author_email: [email protected]
message: 'record asv run'
cwd: .asv/results
branch: asv
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'push' }}
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: .asv/html
target-folder: docs/asv
if: ${{ github.event_name == 'push' }}
env:
MAKEFLAGS: -j2