Skip to content

Check Sphinx links #1191

Check Sphinx links

Check Sphinx links #1191

name: Check Sphinx links
on:
pull_request:
schedule:
- cron: '0 5 * * *' # once per day at midnight ET
workflow_dispatch:
jobs:
check-sphinx-links:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout repo with submodules
uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 0 # tags are required to determine the version
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12' # TODO: Update to 3.13 when linkml and its deps support 3.13
- name: Install Sphinx dependencies and package
run: |
python -m pip install --upgrade pip
python -m pip install ".[all]"
- name: Check Sphinx internal and external links
run: sphinx-build -W -b linkcheck ./docs/source ./test_build