-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (37 loc) · 1.07 KB
/
sphinx_test.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
# This workflow runs a CI test to ensure your documentation still builds.
name: "Pull Request Docs Check"
on:
pull_request:
branches:
- main
paths:
- docs/source/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Update pip
run: |
pip install -U wheel
pip install -U setuptools
python -m pip install -U pip
- name: Get pip cache dir
id: pip-cache
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Pip cache
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Requirements
run: |
pip install -r docs/source/requirements.txt
- name: Build Docs using Sphinx-PDF Generate
run: |
sphinx-pdf-generate -b html docs/source /tmp/_build/html