Match deploy test stamp to Python runtime gate
This commit is contained in:
@@ -100,7 +100,14 @@ def _deployment_repo(tmp_path):
|
|||||||
|
|
||||||
def _stamp(app, head):
|
def _stamp(app, head):
|
||||||
now = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
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):
|
def test_deploy_branch_preflight_accepts_published_main_without_moving_head(tmp_path):
|
||||||
|
|||||||
Reference in New Issue
Block a user