Skip to content

Commit 87413ba

Browse files
committed
tox.ini: find Notebooks to run with nbval-lax using unix find cmd
1 parent 0063174 commit 87413ba

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

tox.ini

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,9 @@ commands =
2323
; (add --nbdime if running tox locally and want to visualise/explore diffs in web browser)
2424
pytest --verbose --maxfail=1 --nbval-lax docs/MuMoTuserManual.ipynb
2525

26-
27-
; Ensure test Notebooks runs *without errors* (do not check for regressions yet)
26+
; Ensure test and demo Notebooks runs *without errors* (do not check for regressions yet)
2827
; (add --nbdime if running tox locally and want to visualise/explore diffs in web browser)
29-
pytest --verbose --maxfail=1 --nbval-lax --cov-config=tox.ini --cov="{envsitepackagesdir}/mumot" --cov-append \
30-
TestNotebooks/MuMoTtest.ipynb \
31-
TestNotebooks/MiscTests/MuMoTtest_GreekLetters.ipynb \
32-
TestNotebooks/MiscTests/MuMoTtest_MultiController.ipynb \
33-
TestNotebooks/MiscTests/MuMoTtest_NoiseFixedPoints.ipynb \
34-
TestNotebooks/MiscTests/MuMoTtest_oneDimensionalModels.ipynb
35-
36-
; Additional example Notebooks (TODO; leave commented)
37-
; TestNotebooks/MiscTests/MuMoTtest_MasterEq.ipynb - currently hangs after showNoiseEqs() for second model?
38-
; TestNotebooks/MiscTests/MuMoTtest_bifurcation.ipynb
39-
; TestNotebooks/MiscTests/MuMoTuserManual_for_LabPresentation.ipynb
28+
pytest --verbose --maxfail=1 --nbval-lax --cov-config=tox.ini --cov="{envsitepackagesdir}/mumot" --cov-append $(find TestNotebooks DemoNotebooks -type f -name '*.ipynb')
4029

4130
; Ensure the user manual and regression test Notebooks do not show regressions (TODO; leave commented)
4231
; (add --nbdime if running tox locally and want to visualise/explore diffs in web browser)
@@ -55,8 +44,7 @@ source = mumot
5544
; Do not calculate coverage of third-party code.
5645
; (NB here this is the _installed_ code in the hidden virtualenv created by tox,
5746
; not the source code of the package)
58-
omit =
59-
*/site-packages/mumot/gen/*
47+
; omit =
6048

6149
; Used by pytest-cov
6250
[report]

0 commit comments

Comments
 (0)