Skip to content

Bump actions/setup-python from 4 to 5 #79

Bump actions/setup-python from 4 to 5

Bump actions/setup-python from 4 to 5 #79

Workflow file for this run

name: Build docs and check links
on: [push, pull_request]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Install Ubuntu packages
run: |
PACKAGES=(
pandoc
)
sudo apt-get install --no-install-recommends ${PACKAGES[@]}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Double-check Python version
run: |
python --version
- name: Install docs dependencies
run: |
python -m pip install -r doc/requirements.txt
- name: Build HTML
run: |
python -m sphinx -W --keep-going --color -d _build/doctrees/ doc/ _build/html/ -b html
- name: Check links
run: |
python -m sphinx -W --keep-going --color -d _build/doctrees/ doc/ _build/linkcheck/ -b linkcheck
- name: Upload linkcheck results
uses: actions/upload-artifact@v3
if: ${{ success() || failure() }}
with:
name: linkcheck
path: _build/linkcheck/output.*