Skip to content

Add actions for notebook clearing, building docs, and running unit tests #2

Add actions for notebook clearing, building docs, and running unit tests

Add actions for notebook clearing, building docs, and running unit tests #2

name: CI - Clear notebook outputs
on:
push:
branches: [ main ]
paths:
- "**/*.ipynb"
- ".github/workflows/clear-notebooks.yml"
pull_request:
paths:
- "**/*.ipynb"
- ".github/workflows/clear-notebooks.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
nbconvert:
name: Clear notebooks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pip"
- name: Install uv
run: python -m pip install -U uv
- name: uv sync
run: uv sync --dev --frozen
- name: nbconvert
run: uv run jupyter nbconvert --clear-output **.ipynb