-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.18 KB
/
doc-test.yml
File metadata and controls
46 lines (36 loc) · 1.18 KB
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
name: "Pull Request Docs Check"
on:
pull_request
# Cancels in-progress workflows for a PR when updated
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docs-build:
# Use the same OS as Read the Docs
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
# Use the same Python version as Read the Docs
python-version: "3.10"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
# Use the same Node.js version as Read the Docs
node-version: "16"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends plantuml texlive npm
- name: Install Node.js packages
run: |
npm install -g npm@9.8.1
npm install -g @mermaid-js/mermaid-cli@10.3.1
- name: Install Python dependencies
run: pip install -r docs/requirements.txt
- name: Build documentation with Sphinx
run: sphinx-build -b html docs/ docs/_build -W