-
Notifications
You must be signed in to change notification settings - Fork 21
48 lines (42 loc) · 1.28 KB
/
docs.yml
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
38
39
40
41
42
43
44
45
46
47
48
name: Build docs
on:
push:
branches: ["main"]
tags:
- "v*.*.*"
pull_request:
branches: ["main"]
jobs:
generate-docs:
name: "Build package documentation"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout tag/branch"
uses: "actions/checkout@v3"
with: { fetch-depth: 0, submodules: "true" }
- name: "Setup Python"
uses: "actions/setup-python@v3"
with:
python-version: "3.9"
- name: "Install build dependencies"
run: |
set -xe
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade -r requirements.txt
python -m pip install --upgrade -r docs/requirements.txt
pip install .
- name: "Build docs"
run: |
wget https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb
sudo dpkg -i pandoc-2.18-1-amd64.deb
cd docs && make html EXAMPLE_SRC=remote
- name: Store artifacts
uses: actions/upload-artifact@v2
with:
name: docs
path: docs/build/html
- name: "Test spelling docs"
run: |
cd docs && sphinx-build -b spelling -W --keep-going source build/spelling