Skip to content

Commit 3951338

Browse files
vincefnCopilot
andcommitted
Disable fallback version check in CI
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 522625b commit 3951338

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

‎.github/workflows/unit-tests.yml‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,19 @@ jobs:
5858
run: |
5959
python - <<'PY'
6060
from pathlib import Path
61-
p = Path("site_scons/fallback_version.py")
61+
p = Path("site_scons/libobjcrystbuildutils.py")
6262
txt = p.read_text()
63-
txt = txt.replace("FALLBACK_VERSION = '2026.2.post0'",
64-
"FALLBACK_VERSION = '2026.1.post0'")
63+
old = """ afb = FALLBACK_VERSION
64+
gfb = gi['version'].split('.post')[0] + '.post0'
65+
if gfb != afb:
66+
raise RuntimeError(EMSG_BAD_FALLBACK_VERSION.format(afb, gfb))
67+
"""
68+
new = """ afb = FALLBACK_VERSION
69+
gfb = gi['version'].split('.post')[0] + '.post0'
70+
"""
71+
if old not in txt:
72+
raise SystemExit("Expected fallback-version consistency block not found")
73+
txt = txt.replace(old, new)
6574
p.write_text(txt)
6675
PY
6776
PREFIX="$CONDA_PREFIX" python -m SCons -Q lib

0 commit comments

Comments
 (0)