-
-
Notifications
You must be signed in to change notification settings - Fork 1k
56 lines (51 loc) · 1.39 KB
/
linkcheck.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
55
56
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Linkcheck
on:
push:
paths:
- docs/**.rst
- .github/workflows/linkcheck.yml
pull_request:
paths:
- docs/**.rst
- .github/workflows/linkcheck.yml
schedule:
- cron: 30 5 * * *
permissions:
contents: read
jobs:
linkcheck:
runs-on: ubuntu-24.04
name: Linkcheck
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- uses: astral-sh/setup-uv@v4
- name: Install apt dependencies
run: |
sudo apt update
sudo apt install -y graphviz
- name: Install Python dependencies
run: uv sync --no-sources --only-group docs --frozen
- name: Sphinx linkcheck
run: |
. .venv/bin/activate
./ci/run-docs linkcheck
- name: Sphinx linkcheck collect
if: always()
run: |
echo "::add-matcher::.github/matchers/sphinx-linkcheck.json"
echo "::add-matcher::.github/matchers/sphinx-linkcheck-warn.json"
sed 's@^@docs/@' docs/_build/linkcheck/output.txt
echo "::remove-matcher owner=sphinx::"
echo "::remove-matcher owner=sphinx-warn::"
- uses: actions/upload-artifact@v4.5.0
if: always()
with:
name: Linkcheck report
path: docs/_build/linkcheck/output.txt