-
Notifications
You must be signed in to change notification settings - Fork 881
43 lines (34 loc) · 1.03 KB
/
Copy pathtest-docs-linkcheck.yml
File metadata and controls
43 lines (34 loc) · 1.03 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
40
41
42
43
---
# This workflow tests building the package docs and verifying links are live.
name: Build docs and check links
on: # yamllint disable-line rule:truthy
schedule:
- cron: 20 4 * * 1 # every monday at 04:20 UTC
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test_docs_linkcheck:
if: ${{ github.repository == 'gboeing/osmnx' }}
name: Build docs and check links
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
shell: bash -elo pipefail {0}
steps:
- name: Checkout repo
uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
cache-dependency-glob: pyproject.toml
enable-cache: true
- name: Install requirements
run: uv sync --only-group docs
- name: Build docs and check links
run: |
uv run sphinx-build --keep-going -E -W -b linkcheck ./docs/source ./docs/build/linkcheck