Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions .github/workflows/daily-gsifi-governance-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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@v4

- name: Setup Python
uses: actions/setup-python@v5
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"
Comment thread
OneFineStarstuff marked this conversation as resolved.
Comment thread
OneFineStarstuff marked this conversation as resolved.

- name: Upload governance test report
if: always()
uses: actions/upload-artifact@v4
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
Loading
Loading