Skip to content

Commit 47aebbf

Browse files
committed
Run simpler compliance tests for wheels when possible
1 parent 13d4416 commit 47aebbf

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,26 @@ jobs:
216216
CIBW_BEFORE_ALL_LINUX: ${{ matrix.cibw_before_all_linux }}
217217
# Fully test the build wheels again.
218218
CIBW_TEST_REQUIRES: "pytest"
219-
# Simple test that requires the project to be build correctly
220-
CIBW_TEST_COMMAND: >-
219+
# Simple tests that requires the project to be build correctly
220+
# Skip extensive compatibility testing which is slow.
221+
CIBW_TEST_COMMAND_LINUX: >-
221222
pytest {project}/tests/test_igzip.py
222-
{project}/tests/test_compat.py
223+
{project}/tests/test_gzip_compliance.py
224+
{project}/tests/test_zlib_compliance.py
225+
{project}/tests/test_igzip_lib.py
226+
-k 'not test_compress_decompress'
227+
CIBW_TEST_COMMAND_MACOS: >-
228+
pytest {project}/tests/test_igzip.py
229+
{project}/tests/test_gzip_compliance.py
230+
{project}/tests/test_zlib_compliance.py
223231
{project}/tests/test_igzip_lib.py
232+
-k 'not test_compress_decompress'
233+
# Windows does not have the test module apparently. Do more expensive
234+
# tests to verify build.
235+
CIBW_TEST_COMMAND_WINDOWS: >-
236+
pytest {project}/tests/test_igzip.py
237+
{project}/tests/test_igzip_lib.py
238+
{project}/tests/test_compat.py
224239
CIBW_ENVIRONMENT_LINUX: >-
225240
PYTHON_ISAL_BUILD_CACHE=True
226241
PYTHON_ISAL_BUILD_CACHE_FILE=/tmp/build_cache

0 commit comments

Comments
 (0)