diff --git a/tests/test_predeploy.py b/tests/test_predeploy.py index 7082e11..e377614 100644 --- a/tests/test_predeploy.py +++ b/tests/test_predeploy.py @@ -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):