[CI] Fix hanging Python setup in Windows CI (#7186)
This commit is contained in:
parent
ee8d1f5ed8
commit
d04312b9c0
@ -127,7 +127,7 @@ def TestWin64() {
|
|||||||
bat "build\\testxgboost.exe"
|
bat "build\\testxgboost.exe"
|
||||||
echo "Installing Python dependencies..."
|
echo "Installing Python dependencies..."
|
||||||
def env_name = 'win64_' + UUID.randomUUID().toString().replaceAll('-', '')
|
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..."
|
echo "Installing Python wheel..."
|
||||||
bat """
|
bat """
|
||||||
conda activate ${env_name} && for /R %%i in (python-package\\dist\\*.whl) DO python -m pip install "%%i"
|
conda activate ${env_name} && for /R %%i in (python-package\\dist\\*.whl) DO python -m pip install "%%i"
|
||||||
|
|||||||
@ -2,7 +2,7 @@ name: win64_env
|
|||||||
channels:
|
channels:
|
||||||
- conda-forge
|
- conda-forge
|
||||||
dependencies:
|
dependencies:
|
||||||
- python
|
- python=3.8
|
||||||
- wheel
|
- wheel
|
||||||
- numpy
|
- numpy
|
||||||
- scipy
|
- scipy
|
||||||
@ -16,6 +16,5 @@ dependencies:
|
|||||||
- jsonschema
|
- jsonschema
|
||||||
- hypothesis
|
- hypothesis
|
||||||
- jsonschema
|
- jsonschema
|
||||||
|
- python-graphviz
|
||||||
- pip
|
- pip
|
||||||
- pip:
|
|
||||||
- graphviz
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ name: win64_env
|
|||||||
channels:
|
channels:
|
||||||
- conda-forge
|
- conda-forge
|
||||||
dependencies:
|
dependencies:
|
||||||
- python=3.7
|
- python=3.8
|
||||||
- numpy
|
- numpy
|
||||||
- scipy
|
- scipy
|
||||||
- matplotlib
|
- matplotlib
|
||||||
@ -12,8 +12,7 @@ dependencies:
|
|||||||
- boto3
|
- boto3
|
||||||
- hypothesis
|
- hypothesis
|
||||||
- jsonschema
|
- jsonschema
|
||||||
|
- cupy
|
||||||
|
- python-graphviz
|
||||||
|
- modin-ray
|
||||||
- pip
|
- pip
|
||||||
- pip:
|
|
||||||
- cupy-cuda101
|
|
||||||
- modin[all]
|
|
||||||
- graphviz
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user