fix(vision): CI has no numpy — the vehicle-stage tests need it without the alpr extra
Build & push images / images (push) Successful in 4m7s

CI syncs the service with `uv sync --frozen` (no extra), so test_vehicle.py's module-level
numpy import broke collection in ci.yml and both build-images runs. numpy joins the dev
group (the service imports it lazily); the one test that resizes with OpenCV skips when
cv2 is absent. Reproduced locally in a CI-identical env: 13 passed, 1 skipped; ruff + mypy clean.

Claude-Session: https://claude.ai/code/session_01FWncR69HgGPuei1dLrW3cU
This commit is contained in:
2026-09-07 08:51:53 +02:00
parent b485e9870b
commit 0411b71c2d
3 changed files with 8 additions and 0 deletions
+3
View File
@@ -760,6 +760,8 @@ alpr = [
dev = [
{ name = "httpx" },
{ name = "mypy" },
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
{ name = "numpy", version = "2.4.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
{ name = "pytest" },
{ name = "ruff" },
]
@@ -779,6 +781,7 @@ provides-extras = ["alpr"]
dev = [
{ name = "httpx", specifier = ">=0.27" },
{ name = "mypy", specifier = ">=1.13" },
{ name = "numpy", specifier = ">=1.26" },
{ name = "pytest", specifier = ">=8.3" },
{ name = "ruff", specifier = ">=0.8" },
]