Skip to content

Commit e7bc41c

Browse files
authored
ci: move linkcheck to weekly scheduled workflow (#813)
1 parent d074b99 commit e7bc41c

2 files changed

Lines changed: 34 additions & 22 deletions

File tree

.github/workflows/documentation.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -99,28 +99,6 @@ jobs:
9999
- name: Build the documentation for the current version (no warnings allowed)
100100
run: make sync && make docs
101101

102-
linkcheck:
103-
runs-on: ubuntu-latest
104-
continue-on-error: true
105-
timeout-minutes: 15
106-
steps:
107-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
108-
with:
109-
fetch-depth: 0
110-
fetch-tags: true
111-
112-
- id: uv
113-
run: echo "version=$(cat .uv-version)" >> "$GITHUB_OUTPUT"
114-
working-directory: .
115-
- name: Install uv
116-
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
117-
with:
118-
version: ${{ steps.uv.outputs.version }}
119-
python-version-file: .py-version
120-
121-
- name: Check documentation links
122-
run: make sync && make docs-linkcheck
123-
124102
# Deployment job
125103
deploy:
126104
environment:

.github/workflows/linkcheck.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Link Check
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 * * 1' # Every Monday at 06:00 UTC
6+
workflow_dispatch:
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
working-directory: python
12+
13+
jobs:
14+
linkcheck:
15+
runs-on: ubuntu-latest
16+
continue-on-error: true
17+
timeout-minutes: 15
18+
steps:
19+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
20+
with:
21+
fetch-depth: 0
22+
fetch-tags: true
23+
24+
- id: uv
25+
run: echo "version=$(cat .uv-version)" >> "$GITHUB_OUTPUT"
26+
working-directory: .
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
29+
with:
30+
version: ${{ steps.uv.outputs.version }}
31+
python-version-file: .py-version
32+
33+
- name: Check documentation links
34+
run: make sync && make docs-linkcheck

0 commit comments

Comments
 (0)