File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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}")
You can’t perform that action at this time.
0 commit comments