Skip to content

Commit ee3ab6c

Browse files
committed
Activate testing in Action
1 parent e81c4ea commit ee3ab6c

File tree

2 files changed

+65
-33
lines changed

2 files changed

+65
-33
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: astropy_rc_basic
2+
3+
on:
4+
workflow_dispatch:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: read
12+
13+
# These only prove that basic test suite in Linux works.
14+
# It is up to the individual packages to do detailed testing with astropy RC.
15+
jobs:
16+
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
17+
with:
18+
submodules: false
19+
envs: |
20+
- linux: py310-asdf_astropy
21+
- linux: py310-astropy_healpix
22+
- linux: py310-astroquery
23+
- linux: py310-ccdproc
24+
- linux: py310-photutils
25+
- linux: py310-regions
26+
- linux: py310-reproject
27+
- linux: py310-specreduce
28+
- linux: py310-specutils
29+
- linux: py310-sunpy
30+
- linux: py310-lightkurve

tox.ini

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,53 @@
22
# We define an environment per package so that we can then run 'tox' on its own
33
# and have all packages be tested even if some have failures.
44
envlist =
5-
# Coordinated packages
6-
astropy_healpix
7-
astroquery
8-
ccdproc
9-
photutils
10-
regions
11-
reproject
12-
specutils
13-
# Other third-party packages - these are widely used packages that have historically
14-
# had issues with some astropy releases, so we include them here as regression testing
15-
sunpy
16-
lightkurve
5+
# Coordinated packages, except for these:
6+
# sunpy
7+
# lightkurve
8+
# These are widely used packages that have historically
9+
# had issues with some astropy releases, so we include them here
10+
# as regression testing.
11+
py{38,39,310,311}-{all,asdf_astropy,astropy_healpix,astroquery,ccdproc,photutils,regions,reproject,specreduce,specutils,sunpy,lightkurve}
1712

1813
requires =
1914
setuptools >= 30.3.0
2015
pip >= 19.3.1
2116
isolated_build = true
2217

2318
[testenv]
19+
# Pass through the following environment variables which are needed for the CI
20+
passenv = HOME CI
21+
2422
pip_pre = true
23+
2524
# Note that we install all dependencies in all environments to catch any
2625
# side effects and make sure all test suites pass with all packages
2726
deps =
2827
astropy[all,test]
29-
# We can't install 'test' for astropy-healpix as it pins hypothesis
30-
# in a way that is not compatible with pytest-astropy
31-
# https://github.com/astropy/astropy-healpix/issues/160
32-
git+https://github.com/spacetelescope/gwcs#egg_name=gwcs
33-
astroquery[test,all]
34-
ccdproc[test,all]
35-
photutils[test,all]
36-
regions[test,all]
37-
reproject[test,all]
38-
git+https://github.com/astropy/specutils#egg_name=specutils[all,test]
39-
sunpy[test,all]
40-
lightkurve[test,all]
28+
asdf_astropy,all: git+https://github.com/astropy/asdf-astropy[test]
29+
astropy_healpix,all: git+https://github.com/astropy/astropy-healpix[test]
30+
astroquery,all: git+https://github.com/astropy/astroquery[test,all]
31+
ccdproc,all: git+https://github.com/astropy/ccdproc[test,all]
32+
photutils,all: git+https://github.com/astropy/photutils[test,all]
33+
regions,all: git+https://github.com/astropy/regions[test,all]
34+
reproject,all: git+https://github.com/astropy/reproject[test,all]
35+
specreduce,all: git+https://github.com/astropy/specreduce[test]
36+
specutils,all: git+https://github.com/astropy/specutils[all,test]
37+
sunpy,all: https://github.com/sunpy/sunpy[test,all]
38+
lightkurve,all: https://github.com/lightkurve/lightkurve[test,all]
39+
4140
skip_install = true
41+
4242
commands =
4343
pip freeze
44-
astropy_healpix: pytest --pyargs astropy_healpix
45-
astroquery: pytest --pyargs astroquery
46-
ccdproc: pytest --pyargs ccdproc
47-
photutils: pytest --pyargs photutils
48-
regions: pytest --pyargs regions
49-
reproject: pytest --pyargs reproject
50-
specutils: pytest --pyargs specutils
51-
sunpy: pytest --pyargs sunpy
52-
lightkurve: pytest --pyargs lightkurve
44+
asdf_astropy,all: pytest --pyargs asdf_astropy
45+
astropy_healpix,all: pytest --pyargs astropy_healpix
46+
astroquery,all: pytest --pyargs astroquery
47+
ccdproc,all: pytest --pyargs ccdproc
48+
photutils,all: pytest --pyargs photutils
49+
regions,all: pytest --pyargs regions
50+
reproject,all: pytest --pyargs reproject
51+
specreduce,all: pytest --pyargs specreduce
52+
specutils,all: pytest --pyargs specutils
53+
sunpy,all: pytest --pyargs sunpy
54+
lightkurve,all: pytest --pyargs lightkurve

0 commit comments

Comments
 (0)