License gate: check our dependencies in a fresh venv
CI / Tests (Postgres 16) (push) Successful in 4m0s
CI / Tests (Postgres 17) (push) Successful in 3m13s
CI / License gate (deny GPL/AGPL/SSPL) (push) Successful in 1m0s
CI / Managed database (shared, emulated, Postgres 17) (push) Successful in 3m48s

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:
admin
2026-11-30 22:47:11 +01:00
co-authored by Claude Opus 5.5
parent d52c6753ed
commit da2e774e45
+5
View File
@@ -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