1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
name: Build & test docs
on: [workflow_dispatch, workflow_call]
jobs:
docs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Install libs
run: |
sudo apt update
sudo apt install latexmk texlive-xetex
- name: Install dependencies
run: |
pip install --upgrade setuptools pip
pip install --upgrade .[docs]
- name: Building docs
run: |
alias sphinx-build='sphinx-build --color -W --keep-going'
sphinx-build -b html docs build/sphinx/html
sphinx-build -b latex docs build/sphinx/latex
make -C build/sphinx/latex all-pdf
- uses: actions/upload-artifact@v5
with:
name: docs
path: |
build/sphinx/html/
build/sphinx/latex/mpmath.pdf
|