Skip to content

Commit 84bdd17

Browse files
committed
tox: do not try to find .ipynbs using 'find' as subshells not permitted in tox.ini
1 parent b5bc5ac commit 84bdd17

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tox.ini

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,22 @@ whitelist_externals =
1212
test
1313
wc
1414
make
15+
xargs
16+
find
1517
commands =
1618
; Ensure ipywidgets Jupyter extension is installed
1719
jupyter nbextension enable --py --sys-prefix widgetsnbextension
1820

1921
; Run unit tests and generate code coverage report
2022
pytest --verbose --cov-config=tox.ini --cov="{envsitepackagesdir}/mumot" tests
2123

22-
; Ensure the user manual Notebook runs *without errors* (do not check for regressions yet)
24+
; Ensure user manual, test and demo Notebooks run *without errors* (do not check for regressions yet)
2325
; (add --nbdime if running tox locally and want to visualise/explore diffs in web browser)
24-
pytest --verbose --maxfail=1 --nbval-lax --nbval-cell-timeout=120 docs/MuMoTuserManual.ipynb
25-
26-
; Ensure test and demo Notebooks runs *without errors* (do not check for regressions yet)
27-
; (add --nbdime if running tox locally and want to visualise/explore diffs in web browser)
28-
pytest --verbose --maxfail=1 --nbval-lax --nbval-cell-timeout=120 --cov-config=tox.ini --cov="{envsitepackagesdir}/mumot" --cov-append $(find TestNotebooks DemoNotebooks -type f -name '*.ipynb')
26+
pytest --verbose --maxfail=1 --nbval-lax --nbval-cell-timeout=120 --cov-config=tox.ini --cov="{envsitepackagesdir}/mumot" --cov-append \
27+
docs/*.ipynb \
28+
TestNotebooks/*.ipynb \
29+
TestNotebooks/MiscTests/*.ipynb \
30+
DemoNotebooks/*
2931

3032
; Ensure the user manual and regression test Notebooks do not show regressions (TODO; leave commented)
3133
; (add --nbdime if running tox locally and want to visualise/explore diffs in web browser)

0 commit comments

Comments
 (0)