|
2 | 2 | # We define an environment per package so that we can then run 'tox' on its own
|
3 | 3 | # and have all packages be tested even if some have failures.
|
4 | 4 | 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} |
17 | 12 |
|
18 | 13 | requires =
|
19 | 14 | setuptools >= 30.3.0
|
20 | 15 | pip >= 19.3.1
|
21 | 16 | isolated_build = true
|
22 | 17 |
|
23 | 18 | [testenv]
|
| 19 | +# Pass through the following environment variables which are needed for the CI |
| 20 | +passenv = HOME CI |
| 21 | + |
24 | 22 | pip_pre = true
|
| 23 | + |
25 | 24 | # Note that we install all dependencies in all environments to catch any
|
26 | 25 | # side effects and make sure all test suites pass with all packages
|
27 | 26 | deps =
|
28 | 27 | 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 | + |
41 | 40 | skip_install = true
|
| 41 | + |
42 | 42 | commands =
|
43 | 43 | 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