Skip to content

Commit d19d004

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ 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
@@ -25,7 +27,8 @@ commands =
2527

2628
; Ensure test and demo Notebooks runs *without errors* (do not check for regressions yet)
2729
; (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')
30+
pytest --verbose --maxfail=1 --nbval-lax --nbval-cell-timeout=120 --cov-config=tox.ini --cov="{envsitepackagesdir}/mumot" --cov-append \
31+
TestNotebooks/*.ipynb TestNotebooks/MiscTests/*.ipynb DemoNotebooks/*
2932

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

0 commit comments

Comments
 (0)