-
Notifications
You must be signed in to change notification settings - Fork 16
37 lines (30 loc) · 888 Bytes
/
docs.yml
File metadata and controls
37 lines (30 loc) · 888 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
31
32
33
34
35
36
37
# This workflow builds the Sphinx documentation, and in doing so - checks for errors in the documentation.
name: Docs
on:
push:
pull_request:
types: [opened, reopened]
workflow_dispatch:
permissions:
contents: read
jobs:
docs:
name: Test Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Python 3.10
uses: actions/setup-python@v6
with:
python-version: "3.10"
cache: "pip" # Cache the pip packages to speed up the workflow
- name: Install Dependencies and Package
run: |
python -m pip install -U pip setuptools
pip install -U -r requirements.txt
pip install -e .[docs]
- name: Build Documentation
run: |
cd docs
sphinx-build -b html -j auto -a -n -T -W --keep-going . _build/html