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

Workflow file for this run

name: CI - Build docs
on:
push:
branches: [ main ]
paths:
- "docs/**"
- "**/*.py"
- ".github/workflows/build-docs.yml"
pull_request:
paths:
- "docs/**"
- ".github/workflows/build-docs.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docs:
name: Build docs
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: Install just
run: uv tool install just
- name: Build docs
run: just docs
doctest:
name: Run doctests
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: Install just
run: uv tool install just
- name: Run doctests
run: just doctest