forked from joblib/loky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
32 lines (31 loc) · 1.06 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
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py27, py35, py36, py37, py38, py39, pypy3
skip_missing_interpreters=True
[testenv]
passenv = NUMBER_OF_PROCESSORS LOKY_MAX_CPU_COUNT
usedevelop = True
deps =
pytest
pytest-timeout
psutil
coverage
py{27,36}: cython
cloudpickle ; python_version == '3.5'
numpy ; python_version >= '3.6' and implementation_name == 'cpython'
faulthandler ; python_version < '3.3'
whitelist_externals=
bash
setenv =
PYENV={envname}
COVERAGE_PROCESS_START={toxinidir}/.coveragerc
LOKY_MAX_DEPTH=3
OMP_NUM_THREADS=4
commands =
python -c "import struct; print('platform: %d' % (8 * struct.calcsize('P')))"
python -c "import loky; print('Detected %d CPUs' % loky.cpu_count())"
python continuous_integration/install_coverage_subprocess_pth.py
py.test {posargs:-vl --maxfail=5 --timeout=60}
coverage combine --append
coverage xml -i # language agnostic report for the codecov upload script
coverage report # display the report as text on stdout