Skip to content

Documentation tests #13

Documentation tests

Documentation tests #13

Workflow file for this run

name: test-docs
run-name: Documentation tests
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
env:
HATCH_ENV_TYPE_VIRTUAL_PATH: ${{ github.workspace }}/.hatch_envs
jobs:
doc-test:
name: Sphinx Documentation Tests
runs-on: ubuntu-latest
if: "!contains(github.event.pull_request.labels.*.name, 'ci | skip')"
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: ./.github/actions/setup-docs-env
- name: Run sphinx html builder
run: hatch run docs:html -W
- name: Cache linkcheck results
uses: actions/cache@v4
with:
path: docs/_build/linkcheck_cache.json
key: linkcheck
- name: Run sphinx linkcheck
run: hatch run docs:linkcheck
- name: Run Sphinx ReST linter
run: hatch run docs:sphinx-rest-linter