-
Notifications
You must be signed in to change notification settings - Fork 43
58 lines (47 loc) · 1.57 KB
/
Copy pathpr-checks.yml
File metadata and controls
58 lines (47 loc) · 1.57 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: PR Checks
on:
pull_request:
branches: [main]
concurrency:
group: pr-checks-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v5.1.0
- name: Install uv
uses: astral-sh/setup-uv@v7.6.0
with:
enable-cache: true
cache-dependency-glob: uv.lock
- name: Set up Python
uses: actions/setup-python@v6.0.0
with:
python-version-file: .python-version
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Build docs (strict)
run: uv run mkdocs build --strict
- name: Verify redirect targets exist
run: uv run python -m scripts.check_redirects
link-check:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Checkout repo
uses: actions/checkout@v5.1.0
with:
fetch-depth: 0
- name: Get changed Markdown files
id: changed
run: |
base="${{ github.event.pull_request.base.sha }}"
head="${{ github.event.pull_request.head.sha }}"
files=$(git diff --name-only "$base" "$head" -- 'docs/**/*.md' | tr '\n' ' ')
echo "files=$files" >> "$GITHUB_OUTPUT"