-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 790 Bytes
/
step_docs.yaml
File metadata and controls
30 lines (27 loc) · 790 Bytes
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
name: 📘 docs
on:
workflow_call:
permissions:
contents: read
jobs:
sphinx:
name: Sphinx (${{ matrix.builder }})
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental || false }}
strategy:
fail-fast: false
matrix:
builder: [ linkcheck, html ]
include:
# Run default html builder with warnings as error
- builder: html
args: -W
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install the project and docs dependencies
run: pip install -e .[docs]
- name: Run sphinx builder ${{ matrix.builder }}
run: sphinx-build -b ${{ matrix.builder }} ${{ matrix.args }} ./docs ./docs/_build