-
Notifications
You must be signed in to change notification settings - Fork 34
47 lines (40 loc) · 1.11 KB
/
link_checker.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
name: Link Checker
on:
push:
branches:
# run on any push to main
- main
pull_request:
paths:
# run on any PR that modifies a markdown file
- '**/*.md'
# run on any PR that changes this workflow
- .github/workflows/linkchecker.yml
# run on any PR that changes the pip requirements
- requirements.txt
# let us trigger it manually
workflow_dispatch:
jobs:
linkcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install linkchecker
- name: Install our python stuff
run: |
python -m pip install -e src
- name: Build Site
run: |
mkdocs build --verbose --clean --config-file mkdocs.yml
- name: Check links
run: |
linkchecker site/index.html