-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdaily-gsifi-governance-validation.yml
More file actions
86 lines (75 loc) · 3 KB
/
Copy pathdaily-gsifi-governance-validation.yml
File metadata and controls
86 lines (75 loc) · 3 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: daily-gsifi-governance-validation
on:
workflow_dispatch:
pull_request:
paths:
- 'DAILY_GSIFI_AGI_ASI_GOVERNANCE_2026_2030.md'
- 'artifacts/daily_governance_report.example.json'
- 'artifacts/daily_governance_report.schema.json'
- 'policies/sentinel_governance.rego'
- 'test_governance_snippets.py'
- 'GOVERNANCE_ARTIFACTS_README.md'
- 'Makefile'
- 'tools/generate_gsifi_governance_report.py'
- 'tools/run_gsifi_governance_checks.py'
- 'test_run_gsifi_governance_checks.py'
- 'test_daily_gsifi_governance_workflow.py'
- 'test_generate_gsifi_governance_report.py'
- 'test_validate_governance_artifacts.py'
- 'tools/validate_governance_artifacts.py'
- '.github/workflows/daily-gsifi-governance-validation.yml'
- 'requirements-governance-checks.txt'
push:
branches: [main, master]
paths:
- 'DAILY_GSIFI_AGI_ASI_GOVERNANCE_2026_2030.md'
- 'artifacts/daily_governance_report.example.json'
- 'artifacts/daily_governance_report.schema.json'
- 'policies/sentinel_governance.rego'
- 'test_governance_snippets.py'
- 'GOVERNANCE_ARTIFACTS_README.md'
- 'Makefile'
- 'tools/generate_gsifi_governance_report.py'
- 'tools/run_gsifi_governance_checks.py'
- 'test_run_gsifi_governance_checks.py'
- 'test_daily_gsifi_governance_workflow.py'
- 'test_generate_gsifi_governance_report.py'
- 'test_validate_governance_artifacts.py'
- 'tools/validate_governance_artifacts.py'
- '.github/workflows/daily-gsifi-governance-validation.yml'
- 'requirements-governance-checks.txt'
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: '3.12'
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-governance-checks.txt
- name: Run Python syntax checks
run: make daily-gsifi-governance-pycompile
- name: Run governance checks with JUnit output
run: make daily-gsifi-governance-ci
- name: Generate governance markdown summary
run: make daily-gsifi-governance-report
- name: Append governance summary to job summary
if: always()
run: cat artifacts/test-results/gsifi-governance-run-summary.md >> "$GITHUB_STEP_SUMMARY"
- name: Upload governance test report
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: gsifi-governance-test-report
path: |
artifacts/test-results/gsifi-governance-tests.xml
artifacts/test-results/gsifi-governance-run-summary.json
artifacts/test-results/gsifi-governance-run-summary.md