Unverified Commit 9d5b0c55 authored by Simon Bowly's avatar Simon Bowly
Browse files

Add testing scripts to catch broken notebooks.

parent 230d7c9a
import nox
@nox.session(python=["3.9"], reuse_venv=True)
def nbtest(session):
session.install("-r", "requirements.txt")
session.run("bash", "test.sh", ".", external=True)
rm -f tested.lst
git ls-files $1 | grep ipynb | xargs -I {} sh -c 'echo {} >> tested.lst; if jupyter nbconvert --to html --execute {}; then echo {}; fi' > ok.lst
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment