forked from scikit-learn/scikit-learn
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add circleci build and test for arm64. (scikit-learn#20460)
Co-authored-by: Olivier Grisel <[email protected]>
- Loading branch information
Showing
5 changed files
with
99 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
UNAMESTR=`uname` | ||
|
||
setup_ccache() { | ||
echo "Setting up ccache" | ||
mkdir /tmp/ccache/ | ||
which ccache | ||
for name in gcc g++ cc c++ x86_64-linux-gnu-gcc x86_64-linux-gnu-c++; do | ||
ln -s $(which ccache) "/tmp/ccache/${name}" | ||
done | ||
export PATH="/tmp/ccache/:${PATH}" | ||
ccache -M 256M | ||
} | ||
|
||
# imports get_dep | ||
source build_tools/shared.sh | ||
|
||
sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test | ||
sudo apt-get update | ||
sudo apt-get install python3-virtualenv ccache | ||
python3 -m virtualenv --system-site-packages --python=python3 testenv | ||
source testenv/bin/activate | ||
pip install --upgrade pip | ||
setup_ccache | ||
python -m pip install $(get_dep cython $CYTHON_VERSION) \ | ||
$(get_dep joblib $JOBLIB_VERSION) | ||
python -m pip install $(get_dep threadpoolctl $THREADPOOLCTL_VERSION) \ | ||
$(get_dep pytest $PYTEST_VERSION) \ | ||
$(get_dep pytest-xdist $PYTEST_XDIST_VERSION) | ||
|
||
if [[ "$COVERAGE" == "true" ]]; then | ||
python -m pip install codecov pytest-cov | ||
fi | ||
|
||
if [[ "$PYTEST_XDIST_VERSION" != "none" ]]; then | ||
python -m pip install pytest-xdist | ||
fi | ||
|
||
if [[ "$TEST_DOCSTRINGS" == "true" ]]; then | ||
# numpydoc requires sphinx | ||
python -m pip install sphinx | ||
python -m pip install numpydoc | ||
fi | ||
|
||
python --version | ||
|
||
# Set parallelism to 3 to overlap IO bound tasks with CPU bound tasks on CI | ||
# workers with 2 cores when building the compiled extensions of scikit-learn. | ||
export SKLEARN_BUILD_PARALLEL=3 | ||
|
||
python -m pip list | ||
pip install --verbose --editable . | ||
ccache -s | ||
python -c "import sklearn; sklearn.show_versions()" | ||
python -m threadpoolctl --import sklearn | ||
python -m pytest sklearn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters