forked from statsmodels/statsmodels
-
Notifications
You must be signed in to change notification settings - Fork 25
/
tox.ini
67 lines (64 loc) · 1.44 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
##############################################################################
# Intended to simplify local generation of coverage of Cython files
#
# tox -e cython-coverage
#
# will produce a HTML report showing line-by-line coverage
#
# can be used to run standard tests on Python 2.7, 3.5, 3.6, and 3.7 or a
# run with coverage but without coverage of Cython files using
#
# tox -e ENV
#
# where env is one of the values in envlist or all environments (slow)
#
# tox
#
##############################################################################
[tox]
envlist =
py38
py39
py310
coverage
cython-coverage
[testenv]
deps =
-rrequirements.txt
cython
matplotlib
joblib
pytest>=6
pytest-xdist
setenv =
MKL_NUM_THREADS=1
NUMEXPR_NUM_THREADS=1
OMP_NUM_THREADS=1
OPENBLAS_NUM_THREADS=1
changedir = {homedir}
commands =
python -c "import statsmodels;statsmodels.test(['-n 2'], exit=True)"
[testenv:coverage]
usedevelop = True
deps =
{[testenv]deps}
pytest-cov
setenv =
{[testenv]setenv}
SM_CYTHON_COVERAGE=false
changedir = {toxinidir}
commands =
coverage erase
pytest -n 2 --cov-report html --cov=statsmodels statsmodels
[testenv:cython-coverage]
usedevelop = True
deps =
{[testenv]deps}
pytest-cov
setenv =
{[testenv]setenv}
SM_CYTHON_COVERAGE=true
changedir = {toxinidir}
commands =
coverage erase
pytest -n 2 --cov-report html --cov=statsmodels statsmodels