54 lines
2.2 KiB
YAML
54 lines
2.2 KiB
YAML
name: Final project review (live)
|
|
on:
|
|
push:
|
|
branches: [feature/final-ci-demo, final-project-demo]
|
|
jobs:
|
|
review:
|
|
runs-on: manual-latex
|
|
container:
|
|
image: sha256:9c907055071888835492d1f479d032b522bb05a29300eff1d6beff1e09c40eb3
|
|
options: --memory=250000000 --memory-swap=250000000 --tmpfs /private-model:rw,size=100000000
|
|
timeout-minutes: 15
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
with:
|
|
ref: ${{ github.sha }}
|
|
persist-credentials: false
|
|
- name: Verify source and run combined contract tests
|
|
env:
|
|
SOURCE_SHA: ${{ github.sha }}
|
|
run: |
|
|
set -eu
|
|
test "$(git rev-parse HEAD)" = "$SOURCE_SHA"
|
|
python3 -m unittest discover -s ci/tests -v
|
|
python3 -m unittest discover -s tests -v
|
|
- name: Run real model under measured 250 MB cap
|
|
env:
|
|
SOURCE_SHA: ${{ github.sha }}
|
|
ACTIONS_RUN_ID: ${{ github.run_id }}
|
|
ACTIONS_ATTEMPT: ${{ github.run_attempt }}
|
|
run: |
|
|
set -eu
|
|
python3 -m reviewer.prepare_runtime --dest out/runtime --model-dir /private-model
|
|
python3 ci/run_live_review.py
|
|
python3 ci/final_project.py bundle --review-dir out/review --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode live --output out/review-bundle.zip
|
|
- name: Publish ready bundle for this exact run and attempt
|
|
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
|
|
with:
|
|
name: review-${{ github.run_id }}-attempt-${{ github.run_attempt }}-${{ github.sha }}
|
|
path: out/review-bundle.zip
|
|
if-no-files-found: error
|
|
retention-days: 14
|
|
- name: Preserve raw model and resource evidence
|
|
if: always()
|
|
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
|
|
with:
|
|
name: live-evidence-${{ github.run_id }}-${{ github.sha }}
|
|
path: |
|
|
out/review
|
|
out/resource.json
|
|
if-no-files-found: warn
|
|
retention-days: 30
|