Skip to content

Commit 5b29411

Browse files
committed
Use nbval
Signed-off-by: martinRenou <[email protected]>
1 parent 99cf7f4 commit 5b29411

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ install:
2222
- conda update -q conda
2323
- conda info -a
2424
- conda install -c conda-forge mamba
25-
- mamba install -c conda-forge nodejs=13 matplotlib
25+
- mamba install -c conda-forge nodejs=13 matplotlib pytest nbval
26+
- pip install pytest-tornasync --no-deps
2627
- mamba install jupyterlab=3 ipywidgets jupyterlab_widgets -c conda-forge/label/jupyterlab_rc -c conda-forge/label/jupyterlab_server_rc -c conda-forge/label/jupyterlab_widgets_rc -c conda-forge
2728
- pip install .
2829
script:
30+
- pytest
2931
- test -d $HOME/miniconda/share/jupyter/nbextensions/jupyter-matplotlib
3032
- test -f $HOME/miniconda/share/jupyter/nbextensions/jupyter-matplotlib/extension.js
3133
- test -f $HOME/miniconda/share/jupyter/nbextensions/jupyter-matplotlib/index.js

pytest.ini

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[pytest]
2+
testpaths = examples
3+
norecursedirs = node_modules .ipynb_checkpoints
4+
addopts = --nbval --current-env

0 commit comments

Comments
 (0)