-
Notifications
You must be signed in to change notification settings - Fork 33
39 lines (31 loc) · 1.14 KB
/
linkcheck.yaml
File metadata and controls
39 lines (31 loc) · 1.14 KB
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
# This is a separate documentation build just to check links. We don't check
# links as part of the normal documentation build since, unlike Sphinx errors
# and warnings, we don't want broken links to block a merge. (Sometimes they
# will be fixed by the same merge, sometimes they're temporary rate limit
# issues.) It also takes about 30 minutes to run the link check due to GitHub
# throttling.
#
# Instead, we only run link checking when explicitly requested and once per
# week to catch any links that have gone stale or were broken.
name: Link Check
"on":
schedule:
- cron: "0 12 * * 1"
workflow_dispatch: {}
jobs:
linkcheck:
runs-on: ubuntu-latest
# Takes about 35m to run with rate limiting from GitHub as of 2025-07-14.
timeout-minutes: 60
steps:
- uses: actions/checkout@v6
with:
# Ensure the documentation gets the right version.
fetch-depth: 0
- uses: astral-sh/setup-uv@v7
- name: Install graphviz
run: |
sudo apt-get update
sudo apt-get install -y graphviz
- name: Check links
run: uv run --only-group=tox tox run -e docs-linkcheck