|
| 1 | +name: Wave 13 Human-Machine Review Board |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: |
| 8 | + workflow_dispatch: |
| 9 | + |
| 10 | +permissions: |
| 11 | + contents: read |
| 12 | + |
| 13 | +jobs: |
| 14 | + wave13-review-board: |
| 15 | + name: Wave 13 role-based review-board evidence |
| 16 | + runs-on: ubuntu-latest |
| 17 | + timeout-minutes: 40 |
| 18 | + |
| 19 | + env: |
| 20 | + PYTHONUNBUFFERED: "1" |
| 21 | + PYTHONDONTWRITEBYTECODE: "1" |
| 22 | + PYTEST_DISABLE_PLUGIN_AUTOLOAD: "1" |
| 23 | + PIP_DISABLE_PIP_VERSION_CHECK: "1" |
| 24 | + |
| 25 | + steps: |
| 26 | + - name: Check out repository |
| 27 | + uses: actions/checkout@v4 |
| 28 | + |
| 29 | + - name: Set up Python |
| 30 | + uses: actions/setup-python@v5 |
| 31 | + with: |
| 32 | + python-version: "3.11" |
| 33 | + |
| 34 | + - name: Install package with development tooling |
| 35 | + run: | |
| 36 | + python -m pip install --upgrade pip |
| 37 | + python -m pip install -e ".[dev]" |
| 38 | +
|
| 39 | + - name: Run Wave 13 adversarial and contract tests |
| 40 | + run: | |
| 41 | + python -m pytest \ |
| 42 | + tests/review_board \ |
| 43 | + tests/ci/test_wave13_review_board_runner.py \ |
| 44 | + tests/ci/test_wave13_review_board_workflow_contract.py \ |
| 45 | + tests/docs/test_wave13_review_board_docs.py \ |
| 46 | + -q |
| 47 | +
|
| 48 | + - name: Compile Wave 13 implementation |
| 49 | + run: | |
| 50 | + python -m compileall -q \ |
| 51 | + src/ix_blackfox/review_board \ |
| 52 | + scripts/run_wave13_review_board_ci.py \ |
| 53 | + tests/review_board \ |
| 54 | + tests/ci/test_wave13_review_board_runner.py \ |
| 55 | + tests/ci/test_wave13_review_board_workflow_contract.py \ |
| 56 | + tests/docs/test_wave13_review_board_docs.py |
| 57 | +
|
| 58 | + - name: Regenerate verified Wave 12 evidence prerequisite |
| 59 | + run: | |
| 60 | + python scripts/run_wave12_assurance_ci.py \ |
| 61 | + --root "." \ |
| 62 | + --head-sha "${{ github.sha }}" \ |
| 63 | + --expected-status "review_required" |
| 64 | +
|
| 65 | + - name: Build and independently verify Wave 13 review board |
| 66 | + run: | |
| 67 | + python scripts/run_wave13_review_board_ci.py \ |
| 68 | + --root "." \ |
| 69 | + --head-sha "${{ github.sha }}" \ |
| 70 | + --expected-status "human_review_required" |
| 71 | +
|
| 72 | + - name: Upload Wave 13 evidence package |
| 73 | + uses: actions/upload-artifact@v4 |
| 74 | + with: |
| 75 | + name: wave13-human-machine-review-board |
| 76 | + path: | |
| 77 | + .blackfox-artifacts/wave13/wave13-human-machine-review-board.zip |
| 78 | + .blackfox-artifacts/wave13/wave13-package-verification.json |
| 79 | + .blackfox-artifacts/wave13/wave13-review-case.json |
| 80 | + .blackfox-artifacts/wave13/wave13-machine-advisories.json |
| 81 | + .blackfox-artifacts/wave13/wave13-board-evaluation.json |
| 82 | + .blackfox-artifacts/wave13/wave13-review-board-ci-summary.json |
| 83 | + if-no-files-found: error |
0 commit comments