diff --git a/.ci/setup.sh b/.ci/setup.sh index a4b311fbe600..b6c0ed6b61e6 100755 --- a/.ci/setup.sh +++ b/.ci/setup.sh @@ -65,7 +65,7 @@ else # Linux libopenmpi-dev \ openmpi-bin fi - if [[ $TASK == "gpu" ]]; then + if [[ $TASK == "gpu" || $TASK == "bdist" ]]; then sudo add-apt-repository ppa:mhier/libboost-latest -y sudo apt-get update sudo apt-get install --no-install-recommends -y \ diff --git a/.ci/test.sh b/.ci/test.sh index 0ba52ecbb998..82be71364d65 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -162,10 +162,11 @@ elif [[ $TASK == "bdist" ]]; then else PLATFORM="manylinux2014_$ARCH" fi - cd $BUILD_DIRECTORY/python-package && python setup.py bdist_wheel --plat-name=$PLATFORM --python-tag py3 || exit -1 + cd $BUILD_DIRECTORY/python-package && python setup.py bdist_wheel --integrated-opencl --plat-name=$PLATFORM --python-tag py3 || exit -1 if [[ $PRODUCES_ARTIFACTS == "true" ]]; then cp dist/lightgbm-$LGB_VER-py3-none-$PLATFORM.whl $BUILD_ARTIFACTSTAGINGDIRECTORY fi + export LIGHTGBM_TEST_DUAL_CPU_GPU=1 fi pip install --user $BUILD_DIRECTORY/python-package/dist/*.whl || exit -1 pytest $BUILD_DIRECTORY/tests || exit -1