License gate: check our dependencies in a fresh venv
The runners share one tool-cache Python across jobs, so packages other repositories' jobs left there (compass-ingestion, compass-schemas from Arbiter) were gated as ours and failed the build at random. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -499,6 +499,11 @@ jobs:
|
||||
env:
|
||||
DREDD_CORE_TOKEN: ${{ secrets.DREDD_CORE_TOKEN }}
|
||||
run: |
|
||||
# A fresh venv: the runners share one tool-cache Python across jobs, so packages other
|
||||
# repositories' jobs installed there (e.g. compass-*) would otherwise be gated as ours.
|
||||
python -m venv "$RUNNER_TEMP/license-venv"
|
||||
echo "$RUNNER_TEMP/license-venv/bin" >> "$GITHUB_PATH"
|
||||
. "$RUNNER_TEMP/license-venv/bin/activate"
|
||||
python -m pip install --upgrade pip
|
||||
# Pin pip-licenses so the gate is reproducible: it must be >=5.5, which reads
|
||||
# PEP 639 `License-Expression` metadata. Older lines (e.g. 5.0.0) only see the
|
||||
|
||||
Reference in New Issue
Block a user