Skip to content

Commit cc9b108

Browse files
authored
Merge pull request #342 from willfurnass/incr_nbval_timeout
Increase nbval cell exec timeout
2 parents 0063174 + 5f53db1 commit cc9b108

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tox.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ commands =
2121

2222
; Ensure the user manual Notebook runs *without errors* (do not check for regressions yet)
2323
; (add --nbdime if running tox locally and want to visualise/explore diffs in web browser)
24-
pytest --verbose --maxfail=1 --nbval-lax docs/MuMoTuserManual.ipynb
25-
24+
pytest --verbose --maxfail=1 --nbval-lax --nbval-cell-timeout=120 docs/MuMoTuserManual.ipynb
2625

2726
; Ensure test 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 \
28+
pytest --verbose --maxfail=1 --nbval-lax --nbval-cell-timeout=120 --cov-config=tox.ini --cov="{envsitepackagesdir}/mumot" --cov-append \
3029
TestNotebooks/MuMoTtest.ipynb \
3130
TestNotebooks/MiscTests/MuMoTtest_GreekLetters.ipynb \
3231
TestNotebooks/MiscTests/MuMoTtest_MultiController.ipynb \
@@ -40,7 +39,7 @@ commands =
4039

4140
; Ensure the user manual and regression test Notebooks do not show regressions (TODO; leave commented)
4241
; (add --nbdime if running tox locally and want to visualise/explore diffs in web browser)
43-
; pytest --verbose --maxfail=1 --nbval --cov-config=tox.ini --cov="{envsitepackagesdir}/mumot" --cov-append TestNotebooks/MuMoTtest.ipynb
42+
; pytest --verbose --maxfail=1 --nbval --nbval-cell-timeout=120 --cov-config=tox.ini --cov="{envsitepackagesdir}/mumot" --cov-append TestNotebooks/MuMoTtest.ipynb
4443

4544
; Check user manual does not contain output cells
4645
bash -c 'test $(nbshow --outputs docs/MuMoTuserManual.ipynb | wc -c) -eq 0'

0 commit comments

Comments
 (0)