-
Notifications
You must be signed in to change notification settings - Fork 636
60 lines (51 loc) · 1.16 KB
/
test-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
name: Test docs
# The tests defined in docs/ are currently influenced by changes to _version.py
# and scopes.py.
on:
pull_request:
paths:
- "docs/**"
- "zmq/**"
- ".github/workflows/test-docs.yml"
push:
paths:
- "docs/**"
- "zmq/**"
- ".github/workflows/test-docs.yml"
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
tags:
- "**"
workflow_dispatch:
env:
LANG: C.UTF-8
SPHINXOPTS: "-W"
jobs:
test-docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install libzmq
run: |
sudo apt-get -y install libzmq3-dev
- name: Install pyzmq
run: |
pip install -v .
- name: Install requirements
run: |
pip install -r docs/requirements.txt
# readthedocs doesn't halt on warnings,
# so raise any warnings here
- name: build docs
run: |
cd docs
make html
- name: check links
run: |
cd docs
make linkcheck