-
-
Notifications
You must be signed in to change notification settings - Fork 465
54 lines (50 loc) · 1.2 KB
/
docs-checks.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
47
48
49
50
51
52
53
54
name: "Documentation Checks"
on:
push:
paths:
- "discord/**"
- "docs/**"
- "requirements/**"
- "*.toml"
- "*.py"
branches: [master]
pull_request:
paths:
- "discord/**"
- "docs/**"
- "requirements/"
- "*.toml"
- "*.py"
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: write-all
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
- name: "Setup Python"
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
cache-dependency-path: "requirements/docs.txt"
check-latest: true
- name: Install dependencies
run: |
python -m pip install -U pip
pip install ".[docs]"
- name: "Check Links"
if: ${{ github.event_name == 'schedule' }}
run: |
cd docs
make linkcheck
- name: "Compile to html"
run: |
cd docs
make -e SPHINXOPTS="-D language='en'" html