Skip to content

Commit 44cbd5e

Browse files
author
Codex
committed
fix: release gate runs tests with locked interpreter
1 parent 805fb9b commit 44cbd5e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/release-gate.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ if ($changelog -notmatch "## \[$version\]") { Fail "CHANGELOG.md has no entry fo
7171

7272
# 3. tests green
7373
Write-Host "Running the full test suite..." -ForegroundColor Cyan
74-
& uv run --directory $rootDir pytest -q
74+
# Use the locked interpreter as a module: `uv run pytest` does not put the
75+
# repository root on sys.path on Windows (tests import `scripts.*`) and can
76+
# trigger a network re-sync against a mirror. `python -m pytest` matches how
77+
# every local verification command in this repo runs the suite.
78+
& $py -m pytest -q
7579
if ($LASTEXITCODE -ne 0) { Fail "test suite failed" }
7680

7781
# 4. README tables generated (drift check)

0 commit comments

Comments
 (0)