From a14ea74a81be2bc0abe5b64e45e57cbd1d2687b1 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Sun, 27 Feb 2022 22:06:39 +0000 Subject: [PATCH] tests: fix nbval --- Makefile | 4 ++-- tox.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f0d1c0e6..796f8b07 100644 --- a/Makefile +++ b/Makefile @@ -62,11 +62,11 @@ testsetup: python setup.py make none testnb: - pytest tests_notebook.ipynb --nbval --current-env -W=ignore --sanitize-with=setup.cfg --cov=tqdm.notebook --cov-report=term + pytest tests_notebook.ipynb --nbval --nbval-current-env -W=ignore --nbval-sanitize-with=setup.cfg --cov=tqdm.notebook --cov-report=term testcoverage: @make coverclean - pytest tests_notebook.ipynb --cov=tqdm --cov-report= --nbval --current-env --sanitize-with=setup.cfg -W=ignore + pytest tests_notebook.ipynb --cov=tqdm --cov-report= --nbval --nbval-current-env --nbval-sanitize-with=setup.cfg -W=ignore pytest -k "not perf" --cov=tqdm --cov-report=xml --cov-report=term --cov-append --cov-fail-under=80 testperf: diff --git a/tox.ini b/tox.ini index 506336d7..89c315c0 100644 --- a/tox.ini +++ b/tox.ini @@ -54,7 +54,7 @@ deps= py3{6,7,8,9,10}: rich tf: tensorflow!=2.5.0 commands= - py3{6,7,8,9,10}: pytest --cov=tqdm --cov-report= tests_notebook.ipynb --nbval --current-env -W=ignore --sanitize-with=setup.cfg + py3{6,7,8,9,10}: pytest --cov=tqdm --cov-report= tests_notebook.ipynb --nbval --nbval-current-env -W=ignore --nbval-sanitize-with=setup.cfg pytest --cov=tqdm --cov-report=xml --cov-report=term --cov-append -k "not perf" {[core]commands} allowlist_externals=codacy