[CI] Fix hanging Python setup in Windows CI (#7186)

This commit is contained in:
Philip Hyunsu Cho
2021-08-24 22:03:51 -07:00
committed by GitHub
parent ee8d1f5ed8
commit d04312b9c0
3 changed files with 7 additions and 9 deletions

View File

@@ -127,7 +127,7 @@ def TestWin64() {
bat "build\\testxgboost.exe"
echo "Installing Python dependencies..."
def env_name = 'win64_' + UUID.randomUUID().toString().replaceAll('-', '')
bat "conda env create -n ${env_name} --file=tests/ci_build/conda_env/win64_test.yml"
bat "conda activate && mamba env create -n ${env_name} --file=tests/ci_build/conda_env/win64_test.yml"
echo "Installing Python wheel..."
bat """
conda activate ${env_name} && for /R %%i in (python-package\\dist\\*.whl) DO python -m pip install "%%i"