Skip to content

Commit 726d27d

Browse files
committed
ci: run tests in cibuildwheel
Previously we weren't running tests against the built wheel. The wheel build could be different from the build used in the tests workflow. Let's test our wheels to add extra confidence about their integrity.
1 parent 1249fc5 commit 726d27d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ build-frontend = "build[uv]"
6565
# Turn compiler warnings into errors.
6666
environment = "ZSTD_WARNINGS_AS_ERRORS=1"
6767

68+
test-command = [
69+
"pytest -v --numprocesses=auto",
70+
"PYTHON_ZSTANDARD_IMPORT_POLICY=cffi pytest -v --numprocesses=auto",
71+
]
72+
test-groups = ["dev"]
73+
test-requires = ["cffi"]
74+
test-sources = ["tests"]
75+
6876
[tool.cibuildwheel.linux]
6977
before-all = "if [ -x /usr/bin/yum ]; then yum install -y libffi-devel; fi"
7078

0 commit comments

Comments
 (0)