-
-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (38 loc) · 983 Bytes
/
checks.yaml
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
name: Checks
on:
push:
branches:
- main
pull_request:
jobs:
docs-build:
name: Docs / Build
runs-on: ubuntu-latest
steps:
- name: Check out code from GitHub
uses: actions/checkout@v4.2.2
with:
fetch-depth: 2
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: pip install -U -r docs/requirements-doc.txt
- name: Make docs
run: |
cd docs
make html
- name: Compare the diff
run: |
git diff > DIFF
if [ -s DIFF ]; then
echo "Documentation is not up to date."
echo "Please perform the following commands locally and then re-commit."
echo "pip install -e ."
echo "cd docs"
echo "make html"
exit 1
else
echo "Documentation is up to date."
fi