Skip to content

Commit

Permalink
try capping python version
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Dec 14, 2022
1 parent d721f4e commit 940022c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .ci/test.sh
Expand Up @@ -121,8 +121,10 @@ fi
# hack around https://github.com/microsoft/LightGBM/pull/5619#issuecomment-1341935203 just to produce
# a releasable artifact on Ubuntu 14.04
PACKAGE_CONSTRAINTS="dask-core distributed pandas numpy scipy"
if [[ $OS_NAME == "linux" ]] && [[ $COMPILER == "gcc" ]] && [[ $TASK == "sdist" ]]; then
PACKAGE_CONSTRAINTS="dask-core<=2022.7.1 distributed<=2022.7.1 libstdcxx-ng<12.0 numpy<=1.2.0 pandas<=1.4.1 scipy<=1.8.0"
if [[ $OS_NAME == "linux" ]] && [[ $COMPILER == "gcc" ]]; then
if [[ $TASK == "sdist" ]] || [[ $TASK == "regular" ]]; then
PACKAGE_CONSTRAINTS="dask-core<=2022.7.1 distributed<=2022.7.1 libstdcxx-ng<12.0 numpy<=1.2.0 pandas<=1.4.1 scipy<=1.8.0"
fi
fi

# re-including python=version[build=*cpython] to ensure that conda doesn't fall back to pypy
Expand Down
5 changes: 4 additions & 1 deletion .vsts-ci.yml
Expand Up @@ -40,7 +40,7 @@ jobs:
matrix:
regular:
TASK: regular
PYTHON_VERSION: '3.9'
PYTHON_VERSION: '3.8'
sdist:
TASK: sdist
PYTHON_VERSION: '3.7'
Expand All @@ -49,15 +49,18 @@ jobs:
PYTHON_VERSION: '3.8'
inference:
TASK: if-else
PYTHON_VERSION: '3.8'
mpi_source:
TASK: mpi
METHOD: source
PYTHON_VERSION: '3.8'
gpu_source:
TASK: gpu
METHOD: source
PYTHON_VERSION: '3.8'
swig:
TASK: swig
PYTHON_VERSION: '3.8'
steps:
- script: |
echo "##vso[task.setvariable variable=BUILD_DIRECTORY]$BUILD_SOURCESDIRECTORY"
Expand Down

0 comments on commit 940022c

Please sign in to comment.