Adding dev testing for pyvo, and also prereleases
[tox]
envlist =
- py{37,38,39,310}-test{,-alldeps,-oldestdeps}{,-devastropy}{,-cov}
+ py{37,38,39,310}-test{,-alldeps,-oldestdeps,-devdeps,-predeps}{,-cov}
codestyle
build_docs
requires =
@@ -27,12 +27,11 @@ changedir = .tmp/{envname}
description = run tests
deps =
- devastropy: git+https://github.com/astropy/astropy.git#egg=astropy
+ devdeps: git+https://github.com/astropy/astropy.git#egg=astropy
+ devdeps: git+https://github.com/astropy/pyvo.git#egg=pyvo
-# TODO: Add more versions to oldestdeps. numpy<1.15 could not be installed
-# in CI, a much newer version was pulled in instead, thus setting
-# minimum numpy to 1.15. mpl while not a dependency, it's required for the
-# tests, and would pull up a newer numpy version if not pinned.
+# TODO: Add more versions to oldestdeps.
+# mpl while not a dependency, it's required for the tests, and would pull up a newer numpy version if not pinned.
oldestdeps: astropy==4.0
oldestdeps: numpy==1.16
@@ -51,6 +50,18 @@ commands =
cov: pytest --pyargs astroquery {toxinidir}/docs --ignore={toxinidir}/docs/gallery* --cov astroquery --cov-config={toxinidir}/setup.cfg {posargs}
cov: coverage xml -o {toxinidir}/coverage.xml
+[testenv:predeps]
+description = run tests with pre-releases
+pip_pre = True
+
+deps = {[testenv]deps}
+passenv = {[testenv]passenv}
+pypi_filter = {[testenv]pypi_filter}
+changedir = {[testenv]changedir}
+extras = {[testenv]extras}
+commands = {[testenv]commands}
+
+
[testenv:codestyle]
changedir = {toxinidir}
skip_install = true
