-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run benchmarks in quick mode in CI (#119)
* Run benchmarks in quick mode in CI to ensure no issues with syntax or code * Run asv machine in CI * Fix Python version * Use tox so as to test with different astropy versions * Simplify CI matrix Co-authored-by: P. L. Lim <[email protected]> * Change 61 -> stable * Test on linux only --------- Co-authored-by: P. L. Lim <[email protected]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
test: | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1 | ||
with: | ||
envs: | | ||
- linux: py311-astropystable | ||
- linux: py311-astropydev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[tox] | ||
envlist = | ||
py311-astropy{stable,dev} | ||
isolated_build = True | ||
|
||
[testenv] | ||
skip_install = true | ||
setenv = | ||
PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/astropy/simple | ||
changedir = | ||
.tmp/{envname} | ||
deps = | ||
asv | ||
numpy | ||
scipy | ||
matplotlib | ||
astropystable: astropy | ||
astropydev: astropy>=0.0.dev0 | ||
astropydev: pyerfa>=0.0.dev0 | ||
|
||
commands = | ||
asv machine --machine unknown --os unknown --arch unknown --cpu unknown --ram unknown --config {toxinidir}/asv.conf.json | ||
asv run --quick --python=same --config {toxinidir}/asv.conf.json |