-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (44 loc) · 1.29 KB
/
asv.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
name: ASV
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
pull_request:
jobs:
build:
name: Build and run benchmarks
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0} # required for conda env
steps:
- uses: actions/checkout@v3
with:
repository: 'scipp/scipp'
submodules: true
fetch-depth: 0 # history required so cmake can determine version
- name: Setup conda environment
uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: 1.5.6-0
environment-file: .buildconfig/ci-linux.yml
cache-environment: true
create-args: python=3.10
- uses: actions/checkout@v3
with:
path: 'scipp-benchmarks'
- uses: hendrikmuhs/[email protected]
- run: cmake --preset base
- run: cmake --build --preset build
- run: ctest --preset test
- run: tox -e asv
- uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: scipp-benchmarks
file_pattern: results/*
- name: Deploy benchmark results
uses: JamesIves/[email protected]
with:
branch: gh_pages
folder: scipp-benchmarks/docs
single-commit: true