Skip to content

Commit

Permalink
tox: do not try to find .ipynbs using 'find' as subshells not permitt…
Browse files Browse the repository at this point in the history
…ed in tox.ini
  • Loading branch information
willfurnass committed Oct 1, 2019
1 parent b5bc5ac commit d19d004
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ whitelist_externals =
test
wc
make
xargs
find
commands =
; Ensure ipywidgets Jupyter extension is installed
jupyter nbextension enable --py --sys-prefix widgetsnbextension
Expand All @@ -25,7 +27,8 @@ commands =

; Ensure test and demo Notebooks runs *without errors* (do not check for regressions yet)
; (add --nbdime if running tox locally and want to visualise/explore diffs in web browser)
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')
pytest --verbose --maxfail=1 --nbval-lax --nbval-cell-timeout=120 --cov-config=tox.ini --cov="{envsitepackagesdir}/mumot" --cov-append \
TestNotebooks/*.ipynb TestNotebooks/MiscTests/*.ipynb DemoNotebooks/*

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

0 comments on commit d19d004

Please sign in to comment.