Match deploy test stamp to Python runtime gate

This commit is contained in:
anor
2026-11-28 00:55:31 +10:00
parent 3af59574f3
commit 07f11c71f5
+8 -1
View File
@@ -100,7 +100,14 @@ def _deployment_repo(tmp_path):
def _stamp(app, head):
now = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
(app / ".predeploy-stamp").write_text(f"{head}\n{now}\nfull: not-ui+ui\n")
text = f"{head}\n{now}\nfull: not-ui+ui\n"
python_bin = os.environ.get("PYTHON_BIN")
if python_bin:
info = subprocess.check_output(
[python_bin, "-c", 'import sys; print("python:", sys.version.split()[0], sys.executable)'],
text=True).strip()
text += info + "\n"
(app / ".predeploy-stamp").write_text(text)
def test_deploy_branch_preflight_accepts_published_main_without_moving_head(tmp_path):