forked from scikit-image/scikit-image
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.24 KB
/
benchmarks-cron.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
52
53
54
name: Benchmark cron
on:
schedule:
- cron: '23 */6 * * * '
pull_request:
types: [opened, reopened, synchronize]
jobs:
benchmark_linux:
name: ${{ matrix.name }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- name: "processes_1"
asv-args: "-a processes=1"
- name: "no_interleave"
asv-args: "--no-interleave-processes"
- name: "default"
asv-args: "--interleave-processes -a processes=2"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
- name: Setup some dependencies
shell: bash -l {0}
run:
pip install asv
- name: Run benchmarks
shell: bash -l {0}
run: |
set -x
# ID this runner
asv machine --yes
# Run benchmarks for last commit against previous one
asv continuous ${{ matrix.asv-args }} --split --show-stderr 'HEAD^' 'HEAD'
- uses: actions/upload-artifact@v2
if: always()
with:
name: asv-benchmark-results-${{ matrix.name }}
path: .asv/results