Skip to content

Commit

Permalink
scripts/gh_release.py: avoid inability to run test on arm builds.
Browse files Browse the repository at this point in the history
Github Arm builds use cross-building, so tests don't run.
  • Loading branch information
julian-smith-artifex-com committed Aug 11, 2023
1 parent 2c09eaf commit 39449ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/gh_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()):
Expand Down

0 comments on commit 39449ea

Please sign in to comment.