Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Add testing for notebooks [WIP] #99

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,19 @@ install:
- pip install -U pip wheel
- pip install python-coveralls
- pip install tox-travis
- pip install nbconvert jupyter_client ipykernel
- ipython kernel install --user --name testkernel
script:
- tox
- shopt -s globstar
- jupyter kernelspec list
- for nb in **/*ipynb; do
jupyter nbconvert --ExecutePreprocessor.timeout=3600 --ExecutePreprocessor.kernel_name=testkernel --execute "$nb" --to markdown |& tee nb_to_md.txt;
traceback=$(grep "Traceback (most recent call last):" nb_to_md.txt);
if [[ $traceback ]]; then
exit 1;
fi;
done
deploy:
- provider: releases
api_key: $GITHUB_PRODUCTION_TOKEN
Expand Down