forked from keflavich/astroquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
87 lines (69 loc) · 2.26 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[tox]
envlist =
py{37,38,39,310,311}-test{,-alldeps,-oldestdeps,-devdeps,-predeps}{,-online}{,-cov}
codestyle
linkcheck
build_docs
requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true
[testenv]
# Pass through the following environment variables which are needed for the CI
passenv = HOME,WINDIR,CI
# Run the tests in a temporary directory to make sure that we don't import
# astropy from the source tree
changedir = .tmp/{envname}
description = run tests
setenv =
PYTEST_ARGS = ''
online: PYTEST_ARGS = --remote-data=any --reruns=1 --reruns-delay 10
deps =
# Installation of nightly wheels happen below in the `commands` section for devdeps
devdeps: git+https://github.com/astropy/pyvo.git#egg=pyvo
# 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.2.1
oldestdeps: numpy==1.18
oldestdeps: matplotlib==3.3.*
oldestdeps: pyvo==1.1
oldestdeps: pytest-doctestplus==0.10.1
oldestdeps: requests==2.19
oldestdeps: keyring==15.0
oldestdeps: beautifulsoup4==4.8
oldestdeps-alldeps: mocpy==0.9
online: pytest-rerunfailures
extras =
test
alldeps: all
commands =
devdeps: pip install -U --pre --only-binary :all: -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
devdeps: pip install -U --pre -i https://pypi.anaconda.org/astropy/simple astropy
pip freeze
!cov: pytest --pyargs astroquery {toxinidir}/docs {env:PYTEST_ARGS} {posargs}
cov: pytest --pyargs astroquery {toxinidir}/docs --cov astroquery --cov-config={toxinidir}/setup.cfg {env:PYTEST_ARGS} {posargs}
cov: coverage xml -o {toxinidir}/coverage.xml
pip_pre =
predeps: true
!predeps: false
[testenv:codestyle]
changedir = {toxinidir}
skip_install = true
description = check code style
deps = flake8
commands = flake8 astroquery --count
[testenv:build_docs]
changedir = {toxinidir}
description = Building the narrative and API docs
extras = docs
requires =
sphinx
commands =
pip freeze
python setup.py build_sphinx -W
[testenv:linkcheck]
changedir = {toxinidir}
description = check the links in the HTML docs
extras = docs
commands =
pip freeze
python setup.py build_sphinx -W -b linkcheck