Skip to content

Commit

Permalink
CI Run only common tests for PyPy (#28704)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesteve committed Mar 29, 2024
1 parent bdf857a commit f59c503
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build_tools/azure/test_script.sh
Expand Up @@ -60,6 +60,15 @@ if [[ -n "$SELECTED_TESTS" ]]; then
export SKLEARN_TESTS_GLOBAL_RANDOM_SEED="all"
fi

TEST_CMD="$TEST_CMD --pyargs sklearn"
if [[ "$DISTRIB" == "conda-pypy3" ]]; then
# Run only common tests for PyPy. Running the full test suite uses too
# much memory and causes the test to time out sometimes. See
# https://github.com/scikit-learn/scikit-learn/issues/27662 for more
# details.
TEST_CMD="$TEST_CMD.tests.test_common"
fi

set -x
eval "$TEST_CMD --pyargs sklearn"
eval "$TEST_CMD"
set +x

0 comments on commit f59c503

Please sign in to comment.