Skip to content

Commit 9e78fed

Browse files
Berik AshimovBerik Ashimov
authored andcommitted
build: simplify cibuildwheel smoke-test to import check (avoid optional-dep sprawl)
1 parent 4dadbaf commit 9e78fed

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,14 @@ jobs:
5151
CIBW_SKIP: "pp* cp36-* cp37-* cp38-* cp39-* cp310-* cp311-* *-musllinux_*"
5252
CIBW_ENVIRONMENT: "HAWKAPI_BUILD_MYPYC=1"
5353
CIBW_BUILD_VERBOSITY: "1"
54-
CIBW_TEST_REQUIRES: "pytest pytest-asyncio msgspec"
55-
CIBW_TEST_COMMAND: "pytest {project}/tests/unit -x --tb=short -q"
54+
# Smoke-test: verify the wheel imports and the compiled extension
55+
# loads. Full functional coverage runs in ci.yml on the source tree;
56+
# replicating it here would require every optional runtime dep
57+
# (libcst, grpc, pydantic, fakeredis, prometheus_client, structlog)
58+
# inside the cibuildwheel venv, which is out of scope.
59+
CIBW_TEST_REQUIRES: "msgspec"
60+
CIBW_TEST_COMMAND: >-
61+
python -c "import hawkapi; from hawkapi import HawkAPI; app = HawkAPI(); assert app is not None; print('hawkapi', hawkapi.__version__, 'imports OK')"
5662
# aarch64 cross-builds via QEMU are slow; skip in-emulator tests to
5763
# keep wall time under the 6h job limit. Native arches still test.
5864
CIBW_TEST_SKIP: "*-linux_aarch64"

0 commit comments

Comments
 (0)