-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (27 loc) · 744 Bytes
/
Copy pathdocs.yml
File metadata and controls
30 lines (27 loc) · 744 Bytes
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
name: Documentation
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
sphinx-build:
runs-on: ubuntu-latest
strategy:
matrix:
# synchronized with `.readthedocs.yml`
python-version: ["3.8"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install PDM
run: curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3
- name: Install dependencies
run: |
pdm sync -G docs
- name: Run sphinx-build
run: |
pdm run sphinx-build -n docs build/sphinx