Skip to content

Commit 398b7c6

Browse files
committed
Improve wheel install & smoke test in CI
Select the built wheel dynamically and echo its path, install the package via a file:// wheel URL including the [pytorch] extras and add PyTorch CPU index to pip, replace the multi-line import check with a single python -c import verification, and run dlclivegui --help in offscreen Qt mode. These changes make the smoke test more robust by ensuring PyTorch dependencies are resolved and exercising the CLI in a headless environment.
1 parent 7a21521 commit 398b7c6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/python-package.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,13 @@ jobs:
6767
# Smoke test: install the built wheel and verify the package imports
6868
- name: Install from wheel & smoke test
6969
run: |
70-
python -m pip install dist/*.whl
71-
python - <<'PY'
72-
import importlib
73-
m = importlib.import_module("dlclivegui")
74-
print("Imported:", m.__name__)
75-
PY
70+
WHEEL=$(ls -1 dist/*.whl | head -n 1)
71+
echo "Using wheel: $WHEEL"
72+
python -m pip install \
73+
--extra-index-url https://download.pytorch.org/whl/cpu \
74+
"deeplabcut-live-gui[pytorch] @ file://$(pwd)/${WHEEL}"
75+
python -c "import dlclivegui; print('Imported dlclivegui OK')"
76+
QT_QPA_PLATFORM=offscreen dlclivegui --help
7677
7778
build_release:
7879
# Tag-only build: produce the "official" release artifacts once matrix passed

0 commit comments

Comments
 (0)