Skip to content

Commit 2331f47

Browse files
committed
fix: match smoke test wheel to runner's Python version and upgrade pip for manylinux_2_17 support
1 parent 8e5d0de commit 2331f47

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release-build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,11 @@ jobs:
216216
- name: Smoke-test the wheel before publishing
217217
run: |
218218
set -euo pipefail
219-
WHEEL=$(ls dist/qector_decoder_v3-*linux*.whl | head -1)
219+
PY_TAG=$(python3 -c "import sys; print(f'cp{sys.version_info.major}{sys.version_info.minor}')")
220+
WHEEL=$(ls dist/qector_decoder_v3-*${PY_TAG}*linux*.whl | head -1)
220221
python -m venv /tmp/smoke_venv
221-
SITE_PKG=$(/tmp/smoke_venv/bin/python -c "import site; print(site.getsitepackages()[0])")
222-
unzip -q -o "$WHEEL" -d "$SITE_PKG"
222+
/tmp/smoke_venv/bin/pip install --upgrade pip
223+
/tmp/smoke_venv/bin/pip install "$WHEEL"
223224
/tmp/smoke_venv/bin/python -c "
224225
import qector_decoder_v3 as q
225226
print('version:', q.__version__)

0 commit comments

Comments
 (0)