-
Notifications
You must be signed in to change notification settings - Fork 46
46 lines (41 loc) · 1.18 KB
/
documentation.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
name: Build the documentation
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
# Functionality for testing documentation builds on multiple OSes and Python versions
name: Build docs (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on:
group: fortuna
labels: fortuna_ubuntu-latest_32-core
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9"]
steps:
# Grap the latest commit from the branch
- name: Checkout the branch
uses: actions/[email protected]
with:
persist-credentials: false
# Install Poetry and build the documentation
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.2
virtualenvs-create: true
virtualenvs-in-project: false
installer-parallel: true
- name: Build the documentation with Sphinx
run: |
poetry install --all-extras
sudo apt install pandoc
pip install pandoc
cd docs
poetry run sphinx-build -b html source build/html