Skip to content

Bump actions/setup-python from 5 to 6 #11

Bump actions/setup-python from 5 to 6

Bump actions/setup-python from 5 to 6 #11

Workflow file for this run

name: Build documentation
on:
pull_request:
branches: [main]
workflow_call:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
env:
PUBLISH_DIR: ./_build/html
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies
run: python3 -m pip install ".[docs]"
- name: Build docs
run: jupyter-book build -W --keep-going .
- name: Install jupyterlite dependencies
run: python3 -m pip install ".[lite]"
- name: Build site for jupyterlite
run: |
mkdir content
find examples -name '*.py' -exec jupytext --to ipynb {} +
find examples -name '*.ipynb' -exec mv {} content ';'
find examples -name '*.ode' -exec cp {} content ';'
cp -r src/zero_mech content/
jupyter lite build --contents content --output-dir ./_build/html/lite
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ${{ env.PUBLISH_DIR }}