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

[ci] speed up Windows jobs (fixes #5647) (#5648)

parent 3d33c756
...@@ -36,6 +36,8 @@ install: ...@@ -36,6 +36,8 @@ install:
build: false build: false
test_script: test_script:
- conda config --remove channels defaults
- conda config --add channels nodefaults
- conda config --add channels conda-forge - conda config --add channels conda-forge
- conda config --set channel_priority strict - conda config --set channel_priority strict
- conda init powershell - conda init powershell
......
...@@ -25,16 +25,6 @@ if ($env:TASK -eq "cpp-tests") { ...@@ -25,16 +25,6 @@ if ($env:TASK -eq "cpp-tests") {
Exit 0 Exit 0
} }
# setup for Python
conda init powershell
conda activate
conda config --set always_yes yes --set changeps1 no
conda update -q -y conda
conda create -q -y -n $env:CONDA_ENV "python=$env:PYTHON_VERSION[build=*cpython]" ; Check-Output $?
if ($env:TASK -ne "bdist") {
conda activate $env:CONDA_ENV
}
if ($env:TASK -eq "swig") { if ($env:TASK -eq "swig") {
$env:JAVA_HOME = $env:JAVA_HOME_8_X64 # there is pre-installed Eclipse Temurin 8 somewhere $env:JAVA_HOME = $env:JAVA_HOME_8_X64 # there is pre-installed Eclipse Temurin 8 somewhere
$ProgressPreference = "SilentlyContinue" # progress bar bug extremely slows down download speed $ProgressPreference = "SilentlyContinue" # progress bar bug extremely slows down download speed
...@@ -50,8 +40,27 @@ if ($env:TASK -eq "swig") { ...@@ -50,8 +40,27 @@ if ($env:TASK -eq "swig") {
Exit 0 Exit 0
} }
# re-including python=version[build=*cpython] to ensure that conda doesn't fall back to pypy # setup for Python
conda install -q -y -n $env:CONDA_ENV cloudpickle joblib matplotlib numpy pandas psutil pytest "python=$env:PYTHON_VERSION[build=*cpython]" python-graphviz scikit-learn scipy ; Check-Output $? conda init powershell
conda activate
conda config --set always_yes yes --set changeps1 no
conda update -q -y conda
conda create -q -y -n $env:CONDA_ENV `
cloudpickle `
joblib `
matplotlib `
numpy `
pandas `
psutil `
pytest `
"python=$env:PYTHON_VERSION[build=*cpython]" `
python-graphviz `
scikit-learn `
scipy ; Check-Output $?
if ($env:TASK -ne "bdist") {
conda activate $env:CONDA_ENV
}
if ($env:TASK -eq "regular") { if ($env:TASK -eq "regular") {
mkdir $env:BUILD_SOURCESDIRECTORY/build; cd $env:BUILD_SOURCESDIRECTORY/build mkdir $env:BUILD_SOURCESDIRECTORY/build; cd $env:BUILD_SOURCESDIRECTORY/build
......
...@@ -283,6 +283,8 @@ jobs: ...@@ -283,6 +283,8 @@ jobs:
condition: eq(variables['TASK'], 'bdist') condition: eq(variables['TASK'], 'bdist')
displayName: 'Install OpenCL' displayName: 'Install OpenCL'
- script: | - script: |
cmd /c "conda config --remove channels defaults"
cmd /c "conda config --add channels nodefaults"
cmd /c "conda config --add channels conda-forge" cmd /c "conda config --add channels conda-forge"
cmd /c "conda config --set channel_priority strict" cmd /c "conda config --set channel_priority strict"
cmd /c "conda init powershell" cmd /c "conda init powershell"
......
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