Skip to content

add workflow

add workflow #1

name: CI for Jupyter Notebooks
on:
push:
branches:
- 454-notebook-testing
pull_request:
branches:
- 454-notebook-testing
jobs:
test-notebooks:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nbconvert nbclient
- name: Run Jupyter Notebooks
run: |
for notebook in $(find . -name '*.ipynb'); do
echo "Executing $notebook"
jupyter nbconvert --to notebook --execute --inplace $notebook
done