Skip to content

Commit 576cf45

Browse files
authored
Run example notebooks CI (#791)
* run notebooks init * change kernel name * change kernel name * change kernel name * rm docs * add nb * fix nb * fig dpi * update model object * no output * test mmm notebooks * fix path * graphviz * sudo * paralelize and Path * reqs * undo * comments * try budget allocation * add quickstart * ignore budget allocation * add make command * use make
1 parent a933b70 commit 576cf45

File tree

6 files changed

+373
-369
lines changed

6 files changed

+373
-369
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,23 @@ jobs:
6464
name: "test_slow"
6565
fail_ci_if_error: false
6666

67+
example_notebooks:
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@v3
71+
- name: Set up Python
72+
uses: actions/setup-python@v3
73+
with:
74+
python-version: "3.12"
75+
- name: Install dependencies
76+
run: |
77+
sudo apt-get install graphviz
78+
pip install -e .[docs]
79+
pip install -e .[test]
80+
- name: Run notebooks
81+
run: make run_notebooks
82+
83+
6784
all:
6885
if: ${{ always() }}
6986
runs-on: ubuntu-latest

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: init lint check_lint test html cleandocs
1+
.PHONY: init lint check_lint test html cleandocs run_notebooks
22

33
init:
44
python3 -m pip install -e .
@@ -23,3 +23,6 @@ html:
2323

2424
cleandocs:
2525
rm -r "docs/build" "docs/jupyter_execute" "docs/source/api/generated"
26+
27+
run_notebooks:
28+
python scripts/run_notebooks/runner.py

0 commit comments

Comments
 (0)