Skip to content

Commit 3b6c987

Browse files
committed
Make package smoke version check dynamic
1 parent 9ac8990 commit 3b6c987

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/package-smoke.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@ jobs:
2929
python -m venv /tmp/intentprobe-wheel-smoke
3030
/tmp/intentprobe-wheel-smoke/bin/python -m pip install --upgrade pip
3131
/tmp/intentprobe-wheel-smoke/bin/python -m pip install --no-deps dist/*.whl
32+
export EXPECTED_INTENTPROBE_VERSION="$(python - <<'PY'
33+
import tomllib
34+
35+
with open("pyproject.toml", "rb") as handle:
36+
print(tomllib.load(handle)["project"]["version"])
37+
PY
38+
)"
3239
cd /tmp
3340
/tmp/intentprobe-wheel-smoke/bin/python - <<'PY'
41+
import os
3442
from importlib.resources import files
3543
import intentprobe
3644
@@ -39,7 +47,7 @@ jobs:
3947
"artifacts",
4048
"qwen-pooled-curated-core-l13-15-v2",
4149
)
42-
assert intentprobe.__version__ == "0.1.0"
50+
assert intentprobe.__version__ == os.environ["EXPECTED_INTENTPROBE_VERSION"]
4351
assert artifact.joinpath("metadata.json").is_file()
4452
assert artifact.joinpath("probe_weights.npz").is_file()
4553
print(f"intentprobe {intentprobe.__version__} artifact OK: {artifact}")

0 commit comments

Comments
 (0)