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 84bdd17
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,22 @@ whitelist_externals =
test
wc
make
xargs
find
commands =
; Ensure ipywidgets Jupyter extension is installed
jupyter nbextension enable --py --sys-prefix widgetsnbextension

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

; Ensure the user manual Notebook runs *without errors* (do not check for regressions yet)
; Ensure user manual, test and demo Notebooks run *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 docs/MuMoTuserManual.ipynb

; 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 \
docs/*.ipynb \
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 84bdd17

Please sign in to comment.