forked from astroML/astroML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
79 lines (58 loc) · 1.67 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
[tox]
envlist =
py{3.6,3.7,3.8,3.9,3.10}-test{,-alldeps,-oldestdeps}{,-devastropy}{,-cov}
codestyle
build_docs
requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true
[testenv]
# Run the tests in a temporary directory to make sure that we don't import
# astroML from the source tree
changedir = .tmp/{envname}
description =
Run tests
alldeps: with all possible dependencies
oldestdeps: with the oldest supported dependencies
devastropy: with development branch of AstroPy
cov: and add test coverage report
deps =
devastropy: git+https://github.com/astropy/astropy.git#egg=astropy
py3.6: pytest<7
oldestdeps: matplotlib==3.0.3
oldestdeps: numpy==1.13.3
oldestdeps: scikit-learn==0.18.2
oldestdeps: scipy==0.19.0
oldestdeps: astropy==3.0
oldestdeps: pymc3==3.7 # optional dependency, but we include it here
alldeps: arviz<0.11 # FIXME: temporary limitation as pymc 3.10 is not compatible with newer arviz
alldeps: numpy<1.20 # FIXME: temporary limitation as theano 1.0.11 is not compatible (pinned for pymc3 3.10)
extras =
test
py3.9-alldeps: all
allowlist_externals = make
commands =
pip freeze
!cov: pytest {toxinidir}/astroML {posargs}
cov: pytest {toxinidir}/astroML --cov {toxinidir}/astroML{posargs}
[testenv:codestyle]
changedir = {toxinidir}
skip_install = true
description = Code style checks.
extras=
codestyle
deps =
flake8
commands =
flake8 {toxinidir}/astroML
[testenv:build_docs]
changedir = {toxinidir}
description = Runs the documentation tests.
extras =
docs
requires =
sphinx
commands =
pip freeze
make -C doc html