Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

repo: the release gate runs the tools tests with pyproj, as CI does (#282)

Eyal Golan706469b11385
diff --git a/scripts/oss/release_gate.sh b/scripts/oss/release_gate.sh
index 0e4e033f1..20ecc0b92 100755
--- a/scripts/oss/release_gate.sh
+++ b/scripts/oss/release_gate.sh
@@ -25,7 +25,7 @@ step "sensitivity gate on content/ (decision D11; Statecraft.Cli --release-gate)
dotnet run --project sim/Statecraft.Cli -v q -- --release-gate --content "$PWD/content" || fail=1
step "tools tests"
-uv run --with pytest==9.1.1 --with rasterio==1.5.2 --with numpy==2.5.3 --with pyyaml==6.0.3 --with pillow==12.3.0 --with requests==2.32.5 pytest tools/tests -q || fail=1
+uv run --with pytest==9.1.1 --with rasterio==1.5.2 --with numpy==2.5.3 --with pyyaml==6.0.3 --with pillow==12.3.0 --with requests==2.32.5 --with pyproj==3.8.0 pytest tools/tests -q || fail=1
step "history scan of main (information; rows in docs/oss/history-accepted.tsv are accepted)"
uv run scripts/oss/scan_history.py --ref main | tee "$scan_out"
diff --git a/scripts/oss/tests/test_policies.py b/scripts/oss/tests/test_policies.py
index 26a7db83f..980c1e2a6 100644
--- a/scripts/oss/tests/test_policies.py
+++ b/scripts/oss/tests/test_policies.py
@@ -209,3 +209,10 @@ def test_m3_release_records_the_completed_sensitivity_review():
assert "sensitivity-reviewed" in section
assert "only `fact-checked`" not in review
assert "await the owner's sensitivity review" not in limits
+
+
+def test_release_gate_runs_the_tools_tests_exactly_as_ci_does():
+ # Without the same --with list (pyproj), the gate skipped 12 tools tests that CI runs.
+ ci = [l.strip() for l in read(".github/workflows/ci.yml").splitlines() if "pytest tools/tests" in l]
+ assert len(ci) == 1 and ci[0].startswith("run: ")
+ assert ci[0][len("run: "):] in read("scripts/oss/release_gate.sh")