diff --git a/tox.ini b/tox.ini index 99a7c6da..18f043e7 100644 --- a/tox.ini +++ b/tox.ini @@ -4,17 +4,11 @@ # and then run "tox" from this directory. [tox] -# deprecation warning: py{34} +# deprecation warning: py{27,py2,34,35} envlist=py{27,34,35,36,37,38,39,py2,py3}{,-tf}{,-keras}, perf, setup.py isolated_build=True -[coverage] -commands= - - coveralls - codecov -X pycov -e TOXENV - - codacy report -l Python -r coverage.xml --partial - -[extra] +[core] deps= pytest pytest-cov @@ -24,14 +18,14 @@ deps= coveralls codecov commands= - pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not perf" - {[coverage]commands} -allowlist_externals=codacy + - coveralls + codecov -X pycov -e TOXENV + - codacy report -l Python -r coverage.xml --partial [testenv] -passenv=CI GITHUB_* TOXENV CODECOV_* COVERALLS_* CODACY_* HOME +passenv=TOXENV CI GITHUB_* CODECOV_* COVERALLS_* CODACY_* HOME deps= - {[extra]deps} + {[core]deps} cython matplotlib numpy @@ -39,17 +33,19 @@ deps= keras: keras py{36,37,38,39}: rich tf: tensorflow -commands={[extra]commands} -allowlist_externals={[extra]allowlist_externals} +commands= + pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not perf" + {[core]commands} +allowlist_externals=codacy [testenv:py{27,py2}{,-tf}{,-keras}] commands= pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not perf" -o addopts= -v --tb=short -rxs -W=error --durations=10 - {[coverage]commands} + {[core]commands} # no cython/numpy/pandas [testenv:py{34,py2,py3}] -deps={[extra]deps} +deps={[core]deps} [testenv:perf] deps=