Skip to content

Commit

Permalink
CI asv check (#1454)
Browse files Browse the repository at this point in the history
* 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 <57452607+kanderso-nrel@users.noreply.github.com>

Co-authored-by: Kevin Anderson <57452607+kanderso-nrel@users.noreply.github.com>
  • Loading branch information
roger-lcc and kandersolar authored May 4, 2022
1 parent 83e379a commit a0812b1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/asv_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
2 changes: 2 additions & 0 deletions docs/sphinx/source/whatsnew/v0.9.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Documentation
Benchmarking
~~~~~~~~~~~~~
* Updated version of numba in asv.conf from 0.36.1 to 0.40.0 to solve numba/numpy conflict. (:issue:`1439`, :pull:`1440`)
* Added a basic CI asv check (:issue:`1446`, :pull:`1454`)

Requirements
~~~~~~~~~~~~
Expand All @@ -37,3 +38,4 @@ Requirements
Contributors
~~~~~~~~~~~~
* Naman Priyadarshi (:ghuser:`Naman-Priyadarshi`)
* Chencheng Luo (:ghuser:`roger-lcc`)

0 comments on commit a0812b1

Please sign in to comment.