Skip to content

Add CI to check if tutorials can be run. #1

Add CI to check if tutorials can be run.

Add CI to check if tutorials can be run. #1

Workflow file for this run

name: Run Tutorials
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Run Tutorials
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
lfs: true
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Test notebooks
run: |
for notebook in docs/tutorials/*.ipynb; do
echo "Testing $notebook"
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=600 "$notebook"
done