Skip to content

Commit

Permalink
Run benchmarks in quick mode in CI (#119)
Browse files Browse the repository at this point in the history
* 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
astrofrog and pllim authored May 15, 2024
1 parent 0fd438d commit a26935f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
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
23 changes: 23 additions & 0 deletions tox.ini
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

0 comments on commit a26935f

Please sign in to comment.