From 59f879501c066fcab64a51ca72ad7edf0836aaa3 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 25 Dec 2020 01:40:26 +0000 Subject: [PATCH] tests:fix py2 --- tox.ini | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/tox.ini b/tox.ini index 6232baf9..31f8b7df 100644 --- a/tox.ini +++ b/tox.ini @@ -9,29 +9,24 @@ envlist = py{27,34,35,36,37,38,39,py2,py3}{,-tf}{,-keras}, perf, flake8, setup.p isolated_build = True [coverage] +commands= + - coveralls + codecov + - codacy report -r coverage.xml + +[extra] deps = pytest pytest-cov py{37,38,39}: pytest-asyncio coverage coveralls + codecov commands = pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf" - - coveralls - - codacy report -r coverage.xml + {[coverage]commands} allowlist_externals = codacy -[extra] -deps = - {[coverage]deps} - codecov -commands = - pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf" - - coveralls - codecov - - codacy report -r coverage.xml -allowlist_externals = {[coverage]allowlist_externals} - [testenv] passenv = CI TOXENV CODECOV_* COVERALLS_* CODACY_* HOME deps = @@ -44,15 +39,13 @@ deps = commands = {[extra]commands} allowlist_externals = {[extra]allowlist_externals} -# no cython/numpy/pandas for py{py2,py3,26,33,34} +[testenv:py{27,py2}{,-tf}{,-keras}] +commands = + pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf" -o addopts= -v --tb=short -rxs --durations=10 + {[coverage]commands} -[testenv:pypy] -deps = {[extra]deps} - -[testenv:pypy3] -deps = {[extra]deps} - -[testenv:py34] +# no cython/numpy/pandas +[testenv:py{34,py2,py3}] deps = {[extra]deps} [testenv:perf]