|
| 1 | +name: regulator-blueprint-validation |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - 'docs/reports/REGULATOR_READY_AGI_ASI_BLUEPRINT_2026_2030.md' |
| 7 | + - 'docs/reports/artifacts/**' |
| 8 | + - 'scripts/validate_regulator_blueprint_artifacts.py' |
| 9 | + - 'scripts/run_blueprint_artifact_checks.sh' |
| 10 | + - 'tests/test_validate_regulator_blueprint_artifacts.py' |
| 11 | + - 'tests/test_run_blueprint_artifact_checks.py' |
| 12 | + - 'Makefile' |
| 13 | + push: |
| 14 | + branches: [ main ] |
| 15 | + paths: |
| 16 | + - 'docs/reports/REGULATOR_READY_AGI_ASI_BLUEPRINT_2026_2030.md' |
| 17 | + - 'docs/reports/artifacts/**' |
| 18 | + - 'scripts/validate_regulator_blueprint_artifacts.py' |
| 19 | + - 'scripts/run_blueprint_artifact_checks.sh' |
| 20 | + - 'tests/test_validate_regulator_blueprint_artifacts.py' |
| 21 | + - 'tests/test_run_blueprint_artifact_checks.py' |
| 22 | + - 'Makefile' |
| 23 | + |
| 24 | +jobs: |
| 25 | + validate-regulator-blueprint: |
| 26 | + runs-on: ubuntu-latest |
| 27 | + steps: |
| 28 | + - name: Checkout |
| 29 | + uses: actions/checkout@v4 |
| 30 | + |
| 31 | + - name: Set up Python |
| 32 | + uses: actions/setup-python@v5 |
| 33 | + with: |
| 34 | + python-version: '3.11' |
| 35 | + |
| 36 | + - name: Install validator deps |
| 37 | + run: | |
| 38 | + python -m pip install --upgrade pip |
| 39 | + python -m pip install -r scripts/requirements-blueprint-validator.txt |
| 40 | +
|
| 41 | + - name: Run regulator validator (human-readable) |
| 42 | + run: python scripts/validate_regulator_blueprint_artifacts.py |
| 43 | + |
| 44 | + - name: Run regulator validator (json) |
| 45 | + run: | |
| 46 | + python scripts/validate_regulator_blueprint_artifacts.py --json > regulator-blueprint-validation.json |
| 47 | + python -m json.tool regulator-blueprint-validation.json > /dev/null |
| 48 | +
|
| 49 | + - name: Run targeted tests |
| 50 | + run: pytest -q tests/test_validate_regulator_blueprint_artifacts.py tests/test_run_blueprint_artifact_checks.py tests/test_validate_blueprint_artifacts.py |
| 51 | + |
| 52 | + - name: Run combined artifact checks |
| 53 | + run: bash scripts/run_blueprint_artifact_checks.sh --skip-install --skip-pytest |
| 54 | + |
| 55 | + - name: Run Makefile regulator targets |
| 56 | + run: | |
| 57 | + make validate-regulator-blueprint-artifacts |
| 58 | + make test-regulator-blueprint-artifacts |
| 59 | +
|
| 60 | + - name: Upload validator report |
| 61 | + uses: actions/upload-artifact@v4 |
| 62 | + with: |
| 63 | + name: regulator-blueprint-validation |
| 64 | + path: regulator-blueprint-validation.json |
0 commit comments