|
| 1 | +name: GSIFI Governance Artifacts CI |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + |
| 6 | + push: |
| 7 | + paths: &governance_paths |
| 8 | + - 'docs/schemas/gien-governance-event.schema.json' |
| 9 | + - 'docs/examples/gien_governance_event_sample.json' |
| 10 | + - 'docs/examples/sr_dsl_fairness_regression_v1.txt' |
| 11 | + - 'docs/policies/sentinel-tiered-autonomy.rego' |
| 12 | + - 'docs/reports/GSIFI_AGI_ASI_GOVERNANCE_BLUEPRINT_2026_2030.md' |
| 13 | + - 'docs/reports/GSIFI_GOVERNANCE_ARTIFACTS_RUNBOOK.md' |
| 14 | + - 'docs/reports/.markdownlint.json' |
| 15 | + - 'scripts/validate_gsifi_governance_assets.py' |
| 16 | + - 'scripts/__init__.py' |
| 17 | + - 'tests/**/*.py' |
| 18 | + - 'pyproject.toml' |
| 19 | + - 'setup.py' |
| 20 | + - '.github/workflows/gsifi-governance-artifacts.yml' |
| 21 | + - 'Makefile' |
| 22 | + pull_request: |
| 23 | + paths: *governance_paths |
| 24 | + |
| 25 | +permissions: |
| 26 | + contents: read |
| 27 | + |
| 28 | +concurrency: |
| 29 | + group: gsifi-governance-artifacts-${{ github.ref }} |
| 30 | + cancel-in-progress: true |
| 31 | + |
| 32 | +jobs: |
| 33 | + validate-governance-artifacts: |
| 34 | + runs-on: ubuntu-latest |
| 35 | + timeout-minutes: 10 |
| 36 | + |
| 37 | + steps: |
| 38 | + - name: Checkout repository |
| 39 | + uses: actions/checkout@v4 |
| 40 | + |
| 41 | + - name: Setup Python |
| 42 | + uses: actions/setup-python@v5 |
| 43 | + with: |
| 44 | + python-version: '3.11' |
| 45 | + |
| 46 | + - name: Setup Node.js |
| 47 | + uses: actions/setup-node@v4 |
| 48 | + with: |
| 49 | + node-version: '20' |
| 50 | + |
| 51 | + - name: Install Python test dependencies |
| 52 | + run: | |
| 53 | + python -m pip install --upgrade pip |
| 54 | + pip install -e .[governance] pytest |
| 55 | +
|
| 56 | + - name: Verify installed console entrypoint |
| 57 | + run: validate-gsifi-governance-assets --help |
| 58 | + |
| 59 | + - name: Run installed console entrypoint against default artifacts |
| 60 | + run: validate-gsifi-governance-assets |
| 61 | + |
| 62 | + - name: Run governance check suite |
| 63 | + run: make check-gsifi-governance |
0 commit comments