Skip to content

Commit a26935f

Browse files
astrofrogpllim
andauthored
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 <2090236+pllim@users.noreply.github.com> * Change 61 -> stable * Test on linux only --------- Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
1 parent 0fd438d commit a26935f

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
tags:
7+
- '*'
8+
9+
jobs:
10+
test:
11+
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
12+
with:
13+
envs: |
14+
- linux: py311-astropystable
15+
- linux: py311-astropydev

tox.ini

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[tox]
2+
envlist =
3+
py311-astropy{stable,dev}
4+
isolated_build = True
5+
6+
[testenv]
7+
skip_install = true
8+
setenv =
9+
PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/astropy/simple
10+
changedir =
11+
.tmp/{envname}
12+
deps =
13+
asv
14+
numpy
15+
scipy
16+
matplotlib
17+
astropystable: astropy
18+
astropydev: astropy>=0.0.dev0
19+
astropydev: pyerfa>=0.0.dev0
20+
21+
commands =
22+
asv machine --machine unknown --os unknown --arch unknown --cpu unknown --ram unknown --config {toxinidir}/asv.conf.json
23+
asv run --quick --python=same --config {toxinidir}/asv.conf.json

0 commit comments

Comments
 (0)