2018-05-31 16:13:41 +00:00
|
|
|
# Tox (https://tox.testrun.org/) is a tool for running tests
|
2015-06-07 22:06:41 +00:00
|
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
|
|
# and then run "tox" from this directory.
|
|
|
|
|
|
|
|
[tox]
|
2021-03-09 15:18:53 +00:00
|
|
|
# deprecation warning: py{27,py2,34,35,36}
|
2021-09-18 13:19:09 +00:00
|
|
|
envlist=py{27,34,35,36,37,38,39}{,-tf}{,-keras}, py310, pypy{2,3}, perf, setup.py
|
2021-01-09 16:50:30 +00:00
|
|
|
isolated_build=True
|
2015-06-07 22:06:41 +00:00
|
|
|
|
2021-09-18 12:18:49 +00:00
|
|
|
[gh-actions]
|
|
|
|
python =
|
|
|
|
2.7: py27-tf-keras
|
|
|
|
3.5: py35-tf-keras
|
|
|
|
3.6: py36-tf-keras
|
|
|
|
3.7: py37-tf-keras
|
|
|
|
3.8: py38-tf-keras, py38-tf
|
|
|
|
3.9: py39-tf-keras
|
2021-09-18 13:19:09 +00:00
|
|
|
3.10: py310
|
2021-09-18 12:18:49 +00:00
|
|
|
pypy-2.7: pypy2
|
|
|
|
pypy-3.7: pypy3
|
|
|
|
|
2021-02-22 22:27:58 +00:00
|
|
|
[core]
|
2021-01-09 16:50:30 +00:00
|
|
|
deps=
|
2020-10-19 12:14:53 +00:00
|
|
|
pytest
|
|
|
|
pytest-cov
|
2021-01-03 22:02:40 +00:00
|
|
|
pytest-timeout
|
2021-09-18 13:19:09 +00:00
|
|
|
py3{7,8,9,10}: pytest-asyncio
|
|
|
|
py3{6,7,8,9,10}: ipywidgets
|
|
|
|
py3{6,7,8,9,10}: git+https://github.com/casperdcl/nbval.git@named_cells#egg=nbval
|
2018-01-29 00:55:06 +00:00
|
|
|
coverage
|
2015-06-18 22:02:13 +00:00
|
|
|
coveralls
|
2018-01-29 00:55:06 +00:00
|
|
|
codecov
|
2021-01-09 16:50:30 +00:00
|
|
|
commands=
|
2021-02-22 22:27:58 +00:00
|
|
|
- coveralls
|
|
|
|
codecov -X pycov -e TOXENV
|
|
|
|
- codacy report -l Python -r coverage.xml --partial
|
2016-10-31 14:40:33 +00:00
|
|
|
|
2018-01-29 00:55:06 +00:00
|
|
|
[testenv]
|
2021-02-22 22:27:58 +00:00
|
|
|
passenv=TOXENV CI GITHUB_* CODECOV_* COVERALLS_* CODACY_* HOME
|
2021-01-09 16:50:30 +00:00
|
|
|
deps=
|
2021-02-22 22:27:58 +00:00
|
|
|
{[core]deps}
|
2018-01-29 00:55:06 +00:00
|
|
|
cython
|
2021-03-05 13:17:39 +00:00
|
|
|
dask[delayed]
|
2021-01-10 23:39:25 +00:00
|
|
|
matplotlib
|
2018-01-29 00:55:06 +00:00
|
|
|
numpy
|
|
|
|
pandas
|
2021-08-14 16:08:35 +00:00
|
|
|
py27-keras: keras<2.5
|
|
|
|
!py27-keras: keras
|
2021-09-18 13:19:09 +00:00
|
|
|
py3{6,7,8,9,10}: rich
|
2021-05-20 10:25:17 +00:00
|
|
|
tf: tensorflow!=2.5.0
|
2021-02-22 22:27:58 +00:00
|
|
|
commands=
|
2021-09-18 13:19:09 +00:00
|
|
|
py3{6,7,8,9,10}: pytest --cov=tqdm --cov-report= tests_notebook.ipynb --nbval --current-env -W=ignore --sanitize-with=setup.cfg
|
2021-03-08 23:34:11 +00:00
|
|
|
pytest --cov=tqdm --cov-report=xml --cov-report=term --cov-append -k "not perf"
|
2021-02-22 22:27:58 +00:00
|
|
|
{[core]commands}
|
|
|
|
allowlist_externals=codacy
|
2018-01-29 00:55:06 +00:00
|
|
|
|
2020-12-25 01:40:26 +00:00
|
|
|
[testenv:py{27,py2}{,-tf}{,-keras}]
|
2021-01-09 16:50:30 +00:00
|
|
|
commands=
|
2021-03-09 00:30:18 +00:00
|
|
|
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not perf" -o addopts= -v --tb=short -rxs -W=error --durations=10
|
2021-02-22 22:27:58 +00:00
|
|
|
{[core]commands}
|
2016-12-15 12:21:59 +00:00
|
|
|
|
2020-12-25 01:40:26 +00:00
|
|
|
# no cython/numpy/pandas
|
|
|
|
[testenv:py{34,py2,py3}]
|
2021-02-22 22:27:58 +00:00
|
|
|
deps={[core]deps}
|
2016-10-31 14:40:33 +00:00
|
|
|
|
2018-01-29 00:55:06 +00:00
|
|
|
[testenv:perf]
|
2021-01-09 16:50:30 +00:00
|
|
|
deps=
|
2021-01-03 22:02:40 +00:00
|
|
|
pytest
|
|
|
|
pytest-timeout
|
2021-01-09 16:50:30 +00:00
|
|
|
commands=pytest -k perf
|
2017-05-29 15:40:15 +00:00
|
|
|
|
2015-10-13 22:42:01 +00:00
|
|
|
[testenv:setup.py]
|
2021-01-09 16:50:30 +00:00
|
|
|
deps=
|
2015-10-13 22:42:01 +00:00
|
|
|
docutils
|
2015-10-14 11:06:59 +00:00
|
|
|
pygments
|
2019-02-10 18:38:28 +00:00
|
|
|
py-make>=0.1.0
|
2021-01-09 16:50:30 +00:00
|
|
|
commands=
|
2020-10-07 15:06:51 +00:00
|
|
|
{envpython} setup.py check --restructuredtext --metadata --strict
|
|
|
|
{envpython} setup.py make none
|