-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
111 lines (101 loc) · 2.52 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[tox]
envlist = clean,py37,build_docs
isolated_build = True
[testenv]
whitelist_externals=
/bin/bash
/usr/bin/bash
setenv =
MPLBACKEND = agg
COLUMNS = 180
PYTEST_COMMAND = pytest --pyargs plasmapy --durations=25 -n=auto --dist=loadfile
extras = tests
deps =
numpydev: git+https://github.com/numpy/numpy
astropydev: git+https://github.com/astropy/astropy
xarraydev: git+https://github.com/pydata/xarray
cov: pytest-cov
!minimal: pytest-xdist
pytest-github-actions-annotate-failures
commands =
!cov: {env:PYTEST_COMMAND} {posargs} -m 'not slow'
cov: {env:PYTEST_COMMAND} {posargs} --cov=plasmapy --cov-report=xml --cov-config={toxinidir}{/}setup.cfg --cov-append --cov-report xml:coverage.xml -m 'not slow'
cov-slow: {env:PYTEST_COMMAND} {posargs} --cov=plasmapy --cov-report=xml --cov-config={toxinidir}{/}setup.cfg --cov-append --cov-report xml:coverage.xml -m 'slow'
description =
run tests
numpydev: with the git main version of numpy
astropydev: with the git main version of astropy
xarraydev: with the git master version of xarray
minimal: with minimal versions of dependencies
cov: with code coverage
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:build_docs]
changedir = {toxinidir}
extras = docs
setenv =
HOME = {envtmpdir}
commands = sphinx-build docs docs{/}_build{/}html -W -b html
[testenv:build_docs_no_examples]
changedir = {toxinidir}
extras = docs
setenv =
HOME = {envtmpdir}
commands = sphinx-build -D nbsphinx_execute='never' docs docs{/}_build{/}html -b html
# This env requires tox-conda.
[testenv:py37-conda]
basepython = python3.7
extras =
deps =
lmfit
pytest-cov
pytest-xdist
conda_deps =
numpy>=1.18.1
scipy>=1.2
astropy>=4.0
pytest>=5.1
h5py
matplotlib
mpmath
numpydoc
pillow
sphinx
sphinx_rtd_theme
# This env tests minimal versions of each dependency.
[testenv:py37-minimal]
basepython = python3.7
extras =
deps =
lmfit==1.0.1
pytest-cov
numpy==1.18.1
scipy==1.2
astropy==4.0
h5py==2.8
matplotlib==2.0
pytest==5.1
mpmath==1.0
pillow
hypothesis
pytest-regressions
numba-scipy
numba
setenv =
PYTEST_COMMAND = pytest --pyargs plasmapy --durations=25
[testenv:linters]
deps =
flake8
pydocstyle
flake8-rst-docstrings
pygments
commands =
flake8 --bug-report
flake8 {toxinidir}{/}plasmapy --count --show-source --statistics
[testenv:py37-minimal-pypi-import]
basepython = python3.7
extras =
deps =
commands = python -c 'import plasmapy'