mirror of https://github.com/tqdm/tqdm.git
tests: notebook: fix paths
- related https://github.com/computationalmodelling/nbval/issues/116#issuecomment-793148404
This commit is contained in:
parent
9e001f657a
commit
5eb36df4f0
6
Makefile
6
Makefile
|
@ -61,12 +61,12 @@ testsetup:
|
||||||
python setup.py make none
|
python setup.py make none
|
||||||
|
|
||||||
testnb:
|
testnb:
|
||||||
pytest --nbval --current-env -k ipynb -W=ignore --sanitize-with=setup.cfg --cov=tqdm.notebook --cov-report=term
|
pytest tests_notebook.ipynb --nbval --current-env -W=ignore --sanitize-with=setup.cfg --cov=tqdm.notebook --cov-report=term
|
||||||
|
|
||||||
testcoverage:
|
testcoverage:
|
||||||
@make coverclean
|
@make coverclean
|
||||||
pytest -k ipynb --nbval --current-env --sanitize-with=setup.cfg -W=ignore --cov=tqdm --cov-report=xml --cov-report=term
|
pytest tests_notebook.ipynb --cov=tqdm --cov-report= --nbval --current-env --sanitize-with=setup.cfg -W=ignore
|
||||||
pytest -k "not perf" --cov-append --cov=tqdm --cov-report=xml --cov-report=term --cov-fail-under=80
|
pytest -k "not perf" --cov=tqdm --cov-report=xml --cov-report=term --cov-append --cov-fail-under=80
|
||||||
|
|
||||||
testperf:
|
testperf:
|
||||||
# do not use coverage (which is extremely slow)
|
# do not use coverage (which is extremely slow)
|
||||||
|
|
8
tox.ini
8
tox.ini
|
@ -37,15 +37,15 @@ deps=
|
||||||
py{36,37,38,39}: rich
|
py{36,37,38,39}: rich
|
||||||
tf: tensorflow
|
tf: tensorflow
|
||||||
commands=
|
commands=
|
||||||
pytest --cov=tqdm --cov-report=xml --cov-report=term -k ipynb --nbval --current-env -W=ignore --sanitize-with=setup.cfg
|
pytest --cov=tqdm --cov-report= tests_notebook.ipynb --nbval --current-env -W=ignore --sanitize-with=setup.cfg
|
||||||
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not perf" --cov-append
|
pytest --cov=tqdm --cov-report=xml --cov-report=term --cov-append -k "not perf"
|
||||||
{[core]commands}
|
{[core]commands}
|
||||||
allowlist_externals=codacy
|
allowlist_externals=codacy
|
||||||
|
|
||||||
[testenv:py{27,py2}{,-tf}{,-keras}]
|
[testenv:py{27,py2}{,-tf}{,-keras}]
|
||||||
commands=
|
commands=
|
||||||
pytest --cov=tqdm --cov-report=xml --cov-report=term -k ipynb -o addopts= -v --tb=short -rxs -W=ignore --durations=10 --nbval --current-env --sanitize-with=setup.cfg
|
pytest --cov=tqdm --cov-report= tests_notebook.ipynb -o addopts= -v --tb=short -rxs -W=ignore --durations=10 --nbval --current-env --sanitize-with=setup.cfg
|
||||||
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not perf" -o addopts= -v --tb=short -rxs -W=error --durations=10 --cov-append
|
pytest --cov=tqdm --cov-report=xml --cov-report=term --cov-append -k "not perf" -o addopts= -v --tb=short -rxs -W=error --durations=10
|
||||||
{[core]commands}
|
{[core]commands}
|
||||||
|
|
||||||
# no cython/numpy/pandas
|
# no cython/numpy/pandas
|
||||||
|
|
Loading…
Reference in New Issue