1
1
[tox]
2
2
envlist =
3
- py{37,38,39,310}-test{,-alldeps,-oldestdeps}{,-devastropy }{,-cov}
3
+ py{37,38,39,310}-test{,-alldeps,-oldestdeps,-devdeps,-predeps }{,-cov}
4
4
codestyle
5
5
build_docs
6
6
requires =
@@ -27,12 +27,11 @@ changedir = .tmp/{envname}
27
27
description = run tests
28
28
29
29
deps =
30
- devastropy: git+https://github.com/astropy/astropy.git# egg=astropy
30
+ devdeps: git+https://github.com/astropy/astropy.git# egg=astropy
31
+ devdeps: git+https://github.com/astropy/pyvo.git# egg=pyvo
31
32
32
- # TODO: Add more versions to oldestdeps. numpy<1.15 could not be installed
33
- # in CI, a much newer version was pulled in instead, thus setting
34
- # minimum numpy to 1.15. mpl while not a dependency, it's required for the
35
- # tests, and would pull up a newer numpy version if not pinned.
33
+ # TODO: Add more versions to oldestdeps.
34
+ # mpl while not a dependency, it's required for the tests, and would pull up a newer numpy version if not pinned.
36
35
37
36
oldestdeps: astropy ==4.0
38
37
oldestdeps: numpy ==1.16
@@ -51,6 +50,18 @@ commands =
51
50
cov: pytest --pyargs astroquery {toxinidir}/docs --ignore ={toxinidir}/docs/gallery* --cov astroquery --cov-config ={toxinidir}/setup.cfg {posargs}
52
51
cov: coverage xml -o {toxinidir}/coverage.xml
53
52
53
+ [testenv:predeps]
54
+ description = run tests with pre-releases
55
+ pip_pre = True
56
+
57
+ deps = {[testenv]deps}
58
+ passenv = {[testenv]passenv}
59
+ pypi_filter = {[testenv]pypi_filter}
60
+ changedir = {[testenv]changedir}
61
+ extras = {[testenv]extras}
62
+ commands = {[testenv]commands}
63
+
64
+
54
65
[testenv:codestyle]
55
66
changedir = {toxinidir}
56
67
skip_install = true
0 commit comments