From 39449eab4738bf0f628b4973581f95329d394d94 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Thu, 10 Aug 2023 22:35:38 +0100 Subject: [PATCH] scripts/gh_release.py: avoid inability to run test on arm builds. Github Arm builds use cross-building, so tests don't run. --- scripts/gh_release.py | 5 +++++ 1 file changed, 5 insertions(+) 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()):