Skip to content

Commit a0812b1

Browse files
CI asv check (#1454)
* CI asv check * added CI asv check * CI asv check * CI asv check * updated CI asv check * Update docs/sphinx/source/whatsnew/v0.9.2.rst updated v0.9.2.rst Co-authored-by: Kevin Anderson <[email protected]> Co-authored-by: Kevin Anderson <[email protected]>
1 parent 83e379a commit a0812b1

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

Diff for: .github/workflows/asv_check.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: asv
2+
3+
# CI ASV CHECK is aimed to verify that the benchmarks execute without error.
4+
on: [pull_request, push]
5+
6+
jobs:
7+
quick:
8+
runs-on: ubuntu-latest
9+
defaults:
10+
run:
11+
shell: bash -el {0}
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Install Python
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: '3.9.7'
22+
23+
- name: Install asv
24+
run: pip install asv==0.4.2
25+
26+
- name: Run asv benchmarks
27+
run: |
28+
cd benchmarks
29+
asv machine --yes
30+
asv run HEAD^! --quick --dry-run --show-stderr | sed "/failed$/ s/^/##[error]/" | tee benchmarks.log
31+
if grep "failed" benchmarks.log > /dev/null ; then
32+
exit 1
33+
fi
34+

Diff for: docs/sphinx/source/whatsnew/v0.9.2.rst

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Documentation
2929
Benchmarking
3030
~~~~~~~~~~~~~
3131
* Updated version of numba in asv.conf from 0.36.1 to 0.40.0 to solve numba/numpy conflict. (:issue:`1439`, :pull:`1440`)
32+
* Added a basic CI asv check (:issue:`1446`, :pull:`1454`)
3233

3334
Requirements
3435
~~~~~~~~~~~~
@@ -37,3 +38,4 @@ Requirements
3738
Contributors
3839
~~~~~~~~~~~~
3940
* Naman Priyadarshi (:ghuser:`Naman-Priyadarshi`)
41+
* Chencheng Luo (:ghuser:`roger-lcc`)

0 commit comments

Comments
 (0)