From 11fbcd2e5a1f2472a14071764617a8ed1b379b23 Mon Sep 17 00:00:00 2001 From: Liron Date: Sun, 12 Jul 2026 11:13:56 +0300 Subject: [PATCH] Avoid TapSDK import in publish smoke tests Importing TapSDK pulls bleak, which shells out to bluetoothctl on Linux and fails on GitHub runners that lack BlueZ. Co-authored-by: Cursor --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c2fa861..0893a46 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -62,17 +62,18 @@ jobs: run: | pip install twine twine check dist/* + # Import package/version only — avoid TapSDK/bleak, which needs bluetoothctl on Linux. - name: Smoke test built wheel run: | python -m venv /tmp/wheel-venv /tmp/wheel-venv/bin/pip install --upgrade pip /tmp/wheel-venv/bin/pip install dist/*.whl - /tmp/wheel-venv/bin/python -c "from tapsdk import TapSDK; from tapsdk.__version__ import __version__; print(__version__)" + /tmp/wheel-venv/bin/python -c "import tapsdk; from tapsdk.__version__ import __version__; print(__version__)" - name: Smoke test built sdist run: | python -m venv /tmp/sdist-venv /tmp/sdist-venv/bin/pip install --upgrade pip /tmp/sdist-venv/bin/pip install dist/*.tar.gz - /tmp/sdist-venv/bin/python -c "from tapsdk import TapSDK" + /tmp/sdist-venv/bin/python -c "import tapsdk; from tapsdk.__version__ import __version__; print(__version__)" - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1