-
Notifications
You must be signed in to change notification settings - Fork 830
37 lines (30 loc) · 1 KB
/
test-docs-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
# This workflow tests building the package docs and verifying links are live.
name: Build docs and check links
on:
schedule:
- cron: 10 4 * * 1 # every monday at 04:10 UTC
workflow_dispatch:
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@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.*
cache: pip
cache-dependency-path: ./environments/requirements/requirements-docs.txt
- name: Install requirements
run: |
python -m pip install -r ./environments/requirements/requirements-docs.txt
python -m pip check
- name: Build docs and check links
run: python -m sphinx -E -W --keep-going -b linkcheck ./docs/source ./docs/build/linkcheck