Skip to content

Add GSIFI governance artifacts, validator CLI, tests, Makefile and CI workflow #8

Add GSIFI governance artifacts, validator CLI, tests, Makefile and CI workflow

Add GSIFI governance artifacts, validator CLI, tests, Makefile and CI workflow #8

name: Governance Reports Validation
on:
workflow_dispatch:
pull_request:
paths:
- 'docs/reports/**'
- 'docs/schemas/governance_reports_manifest.schema.json'
- 'tools/validate_governance_reports.py'
- 'tool_tests/**'
- 'Makefile'
- '.pre-commit-config.yaml'
- '.github/workflows/governance-reports.yml'
push:
paths:
- 'docs/reports/**'
- 'docs/schemas/governance_reports_manifest.schema.json'
- 'tools/validate_governance_reports.py'
- 'tool_tests/**'
- 'Makefile'
- '.pre-commit-config.yaml'
- '.github/workflows/governance-reports.yml'
concurrency:
group: governance-reports-${{ github.ref }}
cancel-in-progress: true
jobs:
validate-governance-reports:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Cache pre-commit environments
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install pre-commit
run: python3 -m pip install --upgrade pre-commit
- name: Run pre-commit hooks
run: pre-commit run --all-files
- name: Run governance validation suite
run: make governance-check