Build Member 2 fixture review-to-release pipeline
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
name: Final project review (fixture)
|
||||
on:
|
||||
push:
|
||||
branches: [feature/final-ci-demo, final-project-demo]
|
||||
jobs:
|
||||
review:
|
||||
runs-on: manual-latex
|
||||
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 fixture 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
|
||||
- name: Produce explicitly simulated review bundle
|
||||
env:
|
||||
SOURCE_SHA: ${{ github.sha }}
|
||||
ACTIONS_RUN_ID: ${{ github.run_id }}
|
||||
ACTIONS_ATTEMPT: ${{ github.run_attempt }}
|
||||
run: |
|
||||
set -eu
|
||||
echo 'Mode: fixture. No live model or live token evidence.'
|
||||
python3 ci/fixtures/reviewer_stub.py --input ci/fixtures/demo_broken.txt --source-commit "$SOURCE_SHA" --out-dir out/review
|
||||
python3 ci/final_project.py bundle --review-dir out/review --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode fixture --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
|
||||
Reference in New Issue
Block a user