add pytest.ini

pytest-timer doesn't seem to be working

require pytest-cov for py26
This commit is contained in:
pgajdos 2020-10-19 15:12:55 +02:00 committed by Casper da Costa-Luis
parent 7f2545ef00
commit 2e65466e8e
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
2 changed files with 5 additions and 4 deletions

4
pytest.ini Normal file
View File

@ -0,0 +1,4 @@
[pytest]
python_files = tests_*.py
testpaths = tqdm
addopts = -v

View File

@ -26,7 +26,6 @@ allowlist_externals =
[extra]
deps =
{[coverage]deps}
pytest-timer
codecov
commands =
pytest --cov=tqdm -k "not tests_perf" -v tqdm/
@ -52,9 +51,9 @@ allowlist_externals = {[extra]allowlist_externals}
# no cython/numpy/pandas for py{py,py3,26,33,34}
[testenv:py26]
# no codecov and timer for py26
deps =
pytest
pytest-cov
coverage
coveralls==1.2.0
codecov
@ -80,7 +79,6 @@ deps = {[extra]deps}
[testenv:tf-no-keras]
deps =
{[extra]deps}
pytest-timer
tensorflow
commands =
pytest tqdm/tests/tests_keras.py -v
@ -88,7 +86,6 @@ commands =
[testenv:perf]
deps =
pytest
pytest-timer
commands =
pytest tqdm/tests/tests_perf.py -v