diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..226db3e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: python +python: + - "3.6" +cache: pip +install: + - pip install -r requirements.txt +script: + - python tests.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..01a6099 --- /dev/null +++ b/test.py @@ -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')