-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (35 loc) · 1.05 KB
/
Copy pathquality.yml
File metadata and controls
46 lines (35 loc) · 1.05 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
name: quality
on:
push:
branches: ["main"]
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install deps
run: |
python -m pip install --upgrade pip
python -m pip install pyyaml
- name: Check links
run: |
python scripts/check_links.py
- name: Validate front matter
run: |
python scripts/validate_front_matter.py
- name: Check router config
run: |
python scripts/check_router_config.py
- name: Scan sensitive content
run: |
python scripts/scan_sensitive.py
- name: Generate artifacts and ensure repo is clean
run: |
python scripts/generate_artifacts.py
git status --porcelain
test -z "$(git status --porcelain)" || (echo \"Generated artifacts differ. Run: python scripts/generate_artifacts.py\" && exit 1)