forked from astropy/astroquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
69 lines (57 loc) · 2.06 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
[tox]
envlist =
py{37,38,39}-test{,-alldeps,-oldestdeps}{,-devastropy}{,-cov}
codestyle
build_docs
requires =
setuptools >= 30.3.0
pip >= 19.3.1
tox-pypi-filter >= 0.12
isolated_build = true
[testenv]
# The following option combined with the use of the tox-pypi-filter above allows
# project-wide pinning of dependencies, e.g. if new versions of pytest do not
# work correctly with pytest-astropy plugins. Most of the time the pinnings file
# should be empty.
pypi_filter = https://raw.githubusercontent.com/astropy/ci-helpers/main/pip_pinnings.txt
# 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
deps =
devastropy: git+https://github.com/astropy/astropy.git#egg=astropy
# 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.
oldestdeps: astropy==3.1.2
oldestdeps: numpy==1.15
oldestdeps: matplotlib==3.3.*
cov: codecov
extras =
test
!py39-alldeps: all_lt_39
py39-alldeps: all
commands =
pip freeze
# FIXME: there are too many failures in the docs example gallery, ignore it for now
!cov: pytest --pyargs astroquery {toxinidir}/docs --ignore={toxinidir}/docs/gallery* {posargs}
cov: pytest --pyargs astroquery {toxinidir}/docs --ignore={toxinidir}/docs/gallery* --cov astroquery {posargs}
cov: coverage xml -o {toxinidir}/coverage.xml
[testenv:codestyle]
changedir = {toxinidir}
skip_install = true
description = check code style
deps = pycodestyle
commands = pycodestyle 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