Feature: Adding bundle for ProbNum2025 #115
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow which runs all Jupyter notebooks of the documentation and fails on errors. | |
# Copied from probnum: https://github.com/probabilistic-numerics/probnum | |
name: Jupyter Notebooks | |
on: | |
# Triggers the workflow on push or pull request | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
run-notebooks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[examples] | |
- name: Execute all notebooks with nbconvert | |
run: | | |
for file in $(find -wholename "./docs/examples/*.ipynb" -not -path "**/.ipynb_checkpoints/*") | |
do | |
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.kernel_name=python3 $file | |
done |