-
Notifications
You must be signed in to change notification settings - Fork 46
35 lines (34 loc) · 1.05 KB
/
build_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
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
name: Build Docs
jobs:
doc_tests:
name: Doc Tests / Python 3.8
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Build source distribution
run: make package
- name: Install package with doc requirements
run: |
python -m pip config --site set global.progress_bar off
python -m pip install unpacked_sdist/
python -m pip install unpacked_sdist/[dev]
python -m pip install unpacked_sdist/[docs]
python -m pip check
sudo apt install -q -y pandoc
sudo apt install -q -y graphviz
- name: Run doc tests
run: make -C docs/ -e "SPHINXOPTS=-W" clean html