Skip to content

Commit

Permalink
added jupyter check
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleoconnell-NIH committed Dec 5, 2023
1 parent 942a352 commit e956077
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/check-jupyter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test Notebooks

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

jobs:
test-notebooks:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jupyter nbformat nbconvert
- name: Execute Notebooks
run: |
find tutorials/notebooks/* -name '*.ipynb' -exec jupyter nbconvert --to notebook --execute {} +
- name: Check for errors
run: |
if [ $? -ne 0 ]; then
echo "Notebook execution failed."
exit 1
fi

0 comments on commit e956077

Please sign in to comment.