Documentation tests #1501
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-docs | |
run-name: Documentation tests | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
doc-test: | |
name: Sphinx-${{ matrix.builder }} | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.experimental || false }} | |
strategy: | |
fail-fast: false | |
matrix: | |
builder: [ html, linkcheck ] | |
include: | |
# Run default html builder with warnings as error | |
- builder: html | |
args: -W | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run sphinx builder ${{ matrix.builder }} | |
run: | | |
pip install hatch | |
hatch run docs:${{ matrix.builder }} ${{ matrix.args }} |