File: tox.ini

package info (click to toggle)
statsmodels 0.12.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 46,208 kB
  • sloc: python: 232,739; f90: 612; sh: 389; javascript: 337; makefile: 164; asm: 156; ansic: 16; xml: 9
file content (68 lines) | stat: -rw-r--r-- 1,480 bytes parent folder | download | duplicates (2)
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
##############################################################################
# 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 = 
    py27
    py35
    py36
    py37
    coverage
    cython-coverage

[testenv]
deps =
    -rrequirements.txt
    cython
    matplotlib
    joblib
    pytest>=3
    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