diff --git a/scripts/gh_release.py b/scripts/gh_release.py index 6733c76c4..74e26bcbd 100755 --- a/scripts/gh_release.py +++ b/scripts/gh_release.py @@ -234,6 +234,11 @@ def set_cibuild_test(): else: env_set('CIBW_TEST_REQUIRES', 'fontTools pytest') env_set('CIBW_TEST_COMMAND', 'python {project}/tests/run_compound.py pytest -s {project}/tests') + + # Don't attempt to run tests on cross-built wheels. (This + # assumes that arm builds are done using cross-builds.) + # + env_set('CIBW_TEST_SKIP', '*-*linux_aarch64 *-macosx_arm64') pymupdf_dir = os.path.abspath( f'{__file__}/../..') if pymupdf_dir != os.path.abspath( os.getcwd()):