Skip to content

Commit

Permalink
setting up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pwrose committed Oct 5, 2018
1 parent 1f5a3f3 commit 61f75b2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: python
python:
- "3.6"
cache: pip
install:
- pip install -r requirements.txt
script:
- python tests.py
15 changes: 15 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import subprocess
import tempfile


def _exec_notebook(path):
with tempfile.NamedTemporaryFile(suffix=".ipynb") as fout:
print(fout.name)
args = ["jupyter", "nbconvert", "--to", "notebook", "--execute",
"--ExecutePreprocessor.timeout=1000",
"--output", fout.name, path]
subprocess.check_call(args)


def test():
_exec_notebook('./example1/0-Workflow.ipynb')

0 comments on commit 61f75b2

Please sign in to comment.