Skip to content

ipython notebook test #1

ipython notebook test

ipython notebook test #1

Workflow file for this run

name: Test Jupyter Notebooks
on: [push, pull_request]
jobs:
test-notebooks:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install Jupyter
run: |
pip install jupyter
- name: Install nbval
run: |
pip install nbval
- name: Run notebook tests
run: |
find examples -name "*.ipynb" | while read notebook; do
jupyter nbconvert --to notebook --execute --inplace --ExecutePreprocessor.timeout=600 "$notebook"
done