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]
|
2023-06-05 13:09:50 +00:00
|
|
|
envlist=py{37,38,39,310,311,py3}{,-tf}{,-keras}, perf, check
|
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]
|
2021-09-18 13:34:44 +00:00
|
|
|
python=
|
|
|
|
3.7: py37
|
|
|
|
3.8: py38
|
|
|
|
3.9: py39
|
2021-09-18 13:19:09 +00:00
|
|
|
3.10: py310
|
2023-03-03 14:36:36 +00:00
|
|
|
3.11: py311
|
2021-09-18 12:18:49 +00:00
|
|
|
pypy-3.7: pypy3
|
2021-09-18 13:34:44 +00:00
|
|
|
[gh-actions:env]
|
|
|
|
PLATFORM=
|
|
|
|
ubuntu: tf-keras
|
2021-09-18 12:18:49 +00:00
|
|
|
|
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
|
2023-03-03 15:58:53 +00:00
|
|
|
pytest-asyncio
|
|
|
|
ipywidgets
|
|
|
|
git+https://github.com/casperdcl/nbval.git@master#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]
|
2023-03-03 14:36:36 +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
|
2023-03-03 15:58:53 +00:00
|
|
|
rich
|
2023-08-09 17:37:21 +00:00
|
|
|
tf: tensorflow!=2.5.0
|
2023-03-03 15:58:53 +00:00
|
|
|
keras: keras
|
2021-02-22 22:27:58 +00:00
|
|
|
commands=
|
2023-06-05 13:09:50 +00:00
|
|
|
pytest --cov=tqdm --cov-report= -W=ignore tests_notebook.ipynb --nbval --current-env --sanitize-with=.meta/nbval.ini
|
2023-03-03 15:58:53 +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
|
|
|
# no cython/numpy/pandas
|
2023-03-03 15:58:53 +00:00
|
|
|
[testenv:pypy3]
|
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
|
2022-02-17 19:49:00 +00:00
|
|
|
pytest-asyncio
|
2021-01-09 16:50:30 +00:00
|
|
|
commands=pytest -k perf
|
2017-05-29 15:40:15 +00:00
|
|
|
|
2023-06-05 13:09:50 +00:00
|
|
|
[testenv:check]
|
2021-01-09 16:50:30 +00:00
|
|
|
deps=
|
2023-06-05 13:09:50 +00:00
|
|
|
build
|
|
|
|
twine
|
2019-02-10 18:38:28 +00:00
|
|
|
py-make>=0.1.0
|
2021-01-09 16:50:30 +00:00
|
|
|
commands=
|
2023-06-05 13:09:50 +00:00
|
|
|
{envpython} -m build
|
|
|
|
{envpython} -m twine check dist/*
|
|
|
|
{envpython} -m pymake -h
|