From 36c5079ce5f2014f1eaeb7a920a818731e96bb9f Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Mon, 28 Jul 2025 07:15:55 +0200 Subject: [PATCH] tests: reduce testing time on iOS (#2523) A number of tests only require to run with a single version of python. This will reduce the time needed to run those tests. --- test/test_ios.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/test_ios.py b/test/test_ios.py index 83c529a9..061591a4 100644 --- a/test/test_ios.py +++ b/test/test_ios.py @@ -236,6 +236,7 @@ def test_no_xbuild_tool_definition(tmp_path, capfd): project_dir, add_env={ "CIBW_PLATFORM": "ios", + "CIBW_BUILD": "cp313-*", "CIBW_TEST_SKIP": "*", }, ) @@ -245,7 +246,7 @@ def test_no_xbuild_tool_definition(tmp_path, capfd): "spam", "0.1.0", platform="ios", - python_abi_tags=["cp313-cp313", "cp314-cp314"], + python_abi_tags=["cp313-cp313"], ) assert set(actual_wheels) == set(expected_wheels) @@ -269,13 +270,14 @@ def test_empty_xbuild_tool_definition(tmp_path, capfd): project_dir, add_env={ "CIBW_PLATFORM": "ios", + "CIBW_BUILD": "cp313-*", "CIBW_TEST_SKIP": "*", "CIBW_XBUILD_TOOLS": "", }, ) expected_wheels = utils.expected_wheels( - "spam", "0.1.0", platform="ios", python_abi_tags=["cp313-cp313", "cp314-cp314"] + "spam", "0.1.0", platform="ios", python_abi_tags=["cp313-cp313"] ) assert set(actual_wheels) == set(expected_wheels) @@ -305,6 +307,7 @@ def test_ios_test_command_without_python_dash_m(tmp_path, capfd): project_dir, add_env={ "CIBW_PLATFORM": "ios", + "CIBW_BUILD": "cp313-*", "CIBW_TEST_COMMAND": "pytest ./tests", "CIBW_TEST_SOURCES": "tests", "CIBW_TEST_REQUIRES": "pytest", @@ -313,7 +316,7 @@ def test_ios_test_command_without_python_dash_m(tmp_path, capfd): ) expected_wheels = utils.expected_wheels( - "spam", "0.1.0", platform="ios", python_abi_tags=["cp313-cp313", "cp314-cp314"] + "spam", "0.1.0", platform="ios", python_abi_tags=["cp313-cp313"] ) assert set(actual_wheels) == set(expected_wheels)