Skip to content

Commit 8f8270c

Browse files
authored
Merge pull request #34 from ctgk/develop
Develop
2 parents 9e7fad7 + e3792c7 commit 8f8270c

File tree

6 files changed

+111
-47
lines changed

6 files changed

+111
-47
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will install Python dependencies, run full checks defined in `.pre-commit-config.yaml` with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Jupyter Notebooks
5+
6+
on:
7+
push:
8+
branches: [ main, develop ]
9+
pull_request:
10+
branches: [ main, develop ]
11+
12+
jobs:
13+
jupyter-notebooks:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
python-version: [3.6, 3.7, 3.8, 3.9]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Upgrade pip
27+
run: python -m pip install --upgrade pip
28+
- name: Install packages
29+
run: pip install .[develop]
30+
- name: Run Jupyter notebooks
31+
run: for note in `ls notebooks/*.ipynb`; do jupyter nbconvert --to html --execute $note; if [ $? != 0 ]; then echo $note; exit 1; fi; done

notebooks/ch05_Neural_Networks.ipynb

Lines changed: 31 additions & 21 deletions
Large diffs are not rendered by default.

notebooks/ch08_Graphical_Models.ipynb

Lines changed: 19 additions & 10 deletions
Large diffs are not rendered by default.

notebooks/ch09_Mixture_Models_and_EM.ipynb

Lines changed: 17 additions & 7 deletions
Large diffs are not rendered by default.

notebooks/ch12_Continuous_Latent_Variables.ipynb

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
[options.extras_require]
55
develop =
6+
jupyter
7+
matplotlib
8+
scikit-learn
9+
610
pre-commit
711

812
# format

0 commit comments

Comments
 (0)