fix: bind CI evidence to pull request head

This commit is contained in:
Joseph Magly
2026-08-16 18:22:19 -04:00
parent 497a2eeda2
commit cb4aec4532
2 changed files with 11 additions and 2 deletions
+3 -2
View File
@@ -14,6 +14,7 @@ concurrency:
cancel-in-progress: true
env:
CANDIDATE_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_NO_INPUT: "1"
UV_VERSION: "0.12.4"
@@ -357,7 +358,7 @@ jobs:
"$TEST_ENV/bin/python" scripts/write_test_evidence.py \
--coverage "test-results/coverage-py${{ matrix.python-version }}.json" \
--junit "test-results/junit-py${{ matrix.python-version }}.xml" \
--head-sha "$GITHUB_SHA" \
--head-sha "$CANDIDATE_SHA" \
--base-sha "$COVERAGE_BASE" \
--python-version "${{ matrix.python-version }}" \
--output "test-results/test-trend-py${{ matrix.python-version }}.json" \
@@ -512,7 +513,7 @@ jobs:
evidence_args+=(--mutation quality-evidence/mutation-stats.json)
fi
"$QUALITY_ENV/bin/python" scripts/write_test_evidence.py \
--head-sha "$GITHUB_SHA" \
--head-sha "$CANDIDATE_SHA" \
--base-sha "$COVERAGE_BASE" \
--python-version "3.12" \
--output quality-evidence/quality-trend-py3.12.json \