Skip to content
Merged
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
9 changes: 7 additions & 2 deletions tools/test_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -e
set -x

PROJECT_DIR="$1"
SCIKIT_LEARN_CONFIG=$(
python -c 'import os, sys; print(os.path.realpath(sys.argv[1]))' \

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started with using realpath but apparently it doesn't exist on macOS and the simplest alternative was to use a python one-liner ...

"$PROJECT_DIR/scikit-learn-src/pyproject.toml"
)


python $PROJECT_DIR/tools/check_license.py

Expand All @@ -24,7 +29,7 @@ python -c "import sklearn; sklearn.show_versions()"

if pip show -qq pytest-xdist; then
XDIST_WORKERS=$(python -c "import joblib; print(joblib.cpu_count(only_physical_cores=True))")
pytest --pyargs sklearn -n $XDIST_WORKERS
pytest -c "$SCIKIT_LEARN_CONFIG" --pyargs sklearn -n "$XDIST_WORKERS"
else
pytest --pyargs sklearn
pytest -c "$SCIKIT_LEARN_CONFIG" --pyargs sklearn
fi
Loading