-
Notifications
You must be signed in to change notification settings - Fork 48
72 lines (68 loc) · 2.33 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: build docs
# TODO: If we have `docs` directories within each package, we should then
# add them here under `paths` to listen for changes
on:
push:
branches:
- master
- develop
- release-*
paths:
- 'docs/**'
- '**.rst'
pull_request:
branches:
- master
- develop
- release-*
paths:
- 'docs/**'
- '**.rst'
defaults:
run:
working-directory: docs
jobs:
tests:
name: "build & check docs"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v1"
with:
python-version: "3.8"
- name: "Install dependencies"
run: |
set -xe
python -VV
python -m site
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade -r requirements.txt
python -m pip install -e ../core/
python -m pip install -e ../cli/
python -m pip install -e ../devtools/
python -m pip install -e ../lib/
python -m pip install -e ../exec/
python -m pip install -e ../audio/
- name: "Build docs"
run: "sphinx-build -n -T -W -b html -d build/doctrees src src/html"
# Temporary workaround for https://gitlab.com/documatt/sphinx-reredirects/-/merge_requests/1
- name: "Check broken links [temporary workaround]"
run: "make linkcheck"
# Uncomment two lines below if/when the above linked PR gets addressed
# - name: "Check broken links"
# run: "sphinx-build -n -T -W -b linkcheck -d build/docstrees src src/linkcheck"
# Un-comment if we want to add this to our build process; commenting it out
# for now because it might be too obtrusive
# - name: "Spell check docs"
# run: |
# sudo apt-get install -y libenchant
# sphinx-build -n -T -W -b spelling -d build/docstrees src src/spellcheck
- name: "Assert Apache License Headers & Copyright in docs/"
run: |
pip install apache-license-check
apache-license-check --include-empty --copyright "Spotify AB"
- name: "Assert Apache License Headers & Copyright in examples/"
working-directory: examples
run: |
pip install apache-license-check
apache-license-check --include-empty --copyright "Spotify AB"