Files
statsmodels/tox.ini
Kevin Sheppard d83c175bbf MAINT: Bump minimum python version
Follow NEP and drop 3.7
2022-01-07 13:09:57 +00:00

68 lines
1.4 KiB
INI

##############################################################################
# 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