-
Notifications
You must be signed in to change notification settings - Fork 491
59 lines (50 loc) · 1.78 KB
/
Copy pathcatalog-validation.yml
File metadata and controls
59 lines (50 loc) · 1.78 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
59
name: Catalog validation
on:
pull_request:
paths:
- TELEVISION.md
- RADIO.md
- scripts/pr_review/**
- .github/workflows/catalog-validation.yml
permissions:
contents: read
concurrency:
group: catalog-validation-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
validate:
name: Validate catalog changes
runs-on: ubuntu-slim
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Run validator self-tests
id: unit_tests
run: python -m unittest discover -s scripts/pr_review/tests -v
- name: Run blocking deterministic validation
id: deterministic_validation
env:
GITHUB_BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: python scripts/pr_review/validate_catalog.py --report-file .catalog-validation-report.json
- name: Run advisory stream availability checks
id: network_checks
continue-on-error: true
env:
GITHUB_BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: python scripts/pr_review/validate_catalog.py --network --report-file .catalog-validation-report.json
- name: Publish validation summary
if: always()
run: |
python scripts/pr_review/render_summary.py \
--report-file .catalog-validation-report.json \
--unit-tests "${{ steps.unit_tests.outcome }}" \
--deterministic-validation "${{ steps.deterministic_validation.outcome }}" \
--network-checks "${{ steps.network_checks.outcome }}" \
>> "$GITHUB_STEP_SUMMARY"