Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions tools/wheels/cibw_test_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ if [[ $FREE_THREADED_BUILD == "True" ]]; then
fi
fi

# Run full tests with -n=auto. This makes pytest-xdist distribute tests across
# the available N CPU cores. Also print the durations for the 10 slowest tests
# to help with debugging slow or hanging tests
python -c "import sys; import numpy; sys.exit(not numpy.test(label='full', extra_argv=['-n=auto', '--durations=10']))"
if [[ $RUNNER_OS == "Windows" && $IS_32_BIT == true && $FREE_THREADED_BUILD == "True" ]] ; then
# Avoid OOM errors by turning off xdist and forcing mimalloc to return pages with no delay
MIMALLOC_PURGE_DELAY=0 python -c "import sys; import numpy; sys.exit(not numpy.test(label='full', extra_argv=['--durations=10']))"
else
# Run full tests with -n=auto. This makes pytest-xdist distribute tests across
# the available N CPU cores. Also print the durations for the 10 slowest tests
# to help with debugging slow or hanging tests
python -c "import sys; import numpy; sys.exit(not numpy.test(label='full', extra_argv=['-n=auto', '--durations=10']))"
fi

# Check license file content
python $PROJECT_DIR/tools/wheels/check_license.py
Loading