-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (39 loc) · 1.11 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
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:
windows-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: ["3.11"]
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.8.3
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