Unverified Commit c629cb0b authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] pin dask and distributed in CI jobs (#4288)



* [ci] pin dask and distributed in CI jobs

* fix for Python 3.6

* fix control flow mistake

* Update .ci/test.sh
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
parent adf36d76
......@@ -104,7 +104,14 @@ if [[ $TASK == "swig" ]]; then
exit 0
fi
conda install -q -y -n $CONDA_ENV cloudpickle dask distributed joblib matplotlib numpy pandas psutil pytest scikit-learn scipy
# temporary fix for https://github.com/microsoft/LightGBM/issues/4285
if [[ $PYTHON_VERSION == "3.6" ]]; then
DASK_DEPENDENCIES="dask distributed"
else
DASK_DEPENDENCIES="dask=2021.4.0 distributed=2021.4.0"
fi
conda install -q -y -n $CONDA_ENV cloudpickle ${DASK_DEPENDENCIES} joblib matplotlib numpy pandas psutil pytest scikit-learn scipy
pip install graphviz # python-graphviz from Anaconda is not allowed to be installed with Python 3.9
if [[ $OS_NAME == "macos" ]] && [[ $COMPILER == "clang" ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment