forked from pvlib/pvlib-python
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 790 Bytes
/
Copy pathasv_check.yml
File metadata and controls
34 lines (27 loc) · 790 Bytes
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
name: asv
# CI ASV CHECK is aimed to verify that the benchmarks execute without error.
on: [pull_request, push]
jobs:
quick:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v3
with:
python-version: '3.9.7'
- name: Install asv
run: pip install asv==0.4.2
- name: Run asv benchmarks
run: |
cd benchmarks
asv machine --yes
asv run HEAD^! --quick --dry-run --show-stderr | sed "/failed$/ s/^/##[error]/" | tee benchmarks.log
if grep "failed" benchmarks.log > /dev/null ; then
exit 1
fi