Skip to content

Commit

Permalink
Run example notebooks CI (#791)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
juanitorduz authored and twiecki committed Sep 10, 2024
1 parent ea792f5 commit d834c85
Show file tree
Hide file tree
Showing 6 changed files with 373 additions and 369 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,23 @@ jobs:
name: "test_slow"
fail_ci_if_error: false

example_notebooks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
sudo apt-get install graphviz
pip install -e .[docs]
pip install -e .[test]
- name: Run notebooks
run: make run_notebooks


all:
if: ${{ always() }}
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: init lint check_lint test html cleandocs
.PHONY: init lint check_lint test html cleandocs run_notebooks

init:
python3 -m pip install -e .
Expand All @@ -23,3 +23,6 @@ html:

cleandocs:
rm -r "docs/build" "docs/jupyter_execute" "docs/source/api/generated"

run_notebooks:
python scripts/run_notebooks/runner.py
Loading

0 comments on commit d834c85

Please sign in to comment.