Repository navigation
46 lines (41 loc) · 1.44 KB
/
Copy pathci.yml
File metadata and controls
46 lines (41 loc) · 1.44 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
name: PR validation
on:
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
validate:
name: Validate docs
runs-on: ubuntu-26.04
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.15"
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "26"
- name: Install locked documentation dependencies
run: python -m pip install --require-hashes -r .github/requirements-ci.txt
- name: Build documentation with strict validation
run: mkdocs build --strict
required-ci:
name: CI / Required
# Always report a result, including when a prerequisite failed or was skipped.
if: ${{ always() && github.event_name == 'pull_request' }}
needs:
- validate
runs-on: ubuntu-26.04
timeout-minutes: 5
permissions: {}
steps:
- name: Require every PR validation job to pass
env:
RESULTS: ${{ toJSON(needs.*.result) }}
run: jq --exit-status 'length > 0 and all(. != "failure" and . != "cancelled")' <<< "$RESULTS"