Skip to content

Commit f59c503

Browse files
authored
CI Run only common tests for PyPy (#28704)
1 parent bdf857a commit f59c503

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build_tools/azure/test_script.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ if [[ -n "$SELECTED_TESTS" ]]; then
6060
export SKLEARN_TESTS_GLOBAL_RANDOM_SEED="all"
6161
fi
6262

63+
TEST_CMD="$TEST_CMD --pyargs sklearn"
64+
if [[ "$DISTRIB" == "conda-pypy3" ]]; then
65+
# Run only common tests for PyPy. Running the full test suite uses too
66+
# much memory and causes the test to time out sometimes. See
67+
# https://github.com/scikit-learn/scikit-learn/issues/27662 for more
68+
# details.
69+
TEST_CMD="$TEST_CMD.tests.test_common"
70+
fi
71+
6372
set -x
64-
eval "$TEST_CMD --pyargs sklearn"
73+
eval "$TEST_CMD"
6574
set +x

0 commit comments

Comments
 (0)