Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: [ci] use XCode 14.1 on macOS-latest gcc jobs (fixes #5589) #5588

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if [[ $OS_NAME == "macos" ]]; then
sudo xcode-select -s /Applications/Xcode_10.3.app/Contents/Developer || exit -1
fi
else # gcc
sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer || exit -1
if [[ $TASK != "mpi" ]]; then
brew install gcc
fi
Expand Down
6 changes: 3 additions & 3 deletions .ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ fi

# temporary fix for https:/microsoft/LightGBM/issues/5390
if [[ $PYTHON_VERSION == "3.7" ]]; then
DEPENDENCIES="dask distributed"
DEPENDENCIES="dask-core distributed"
else
DEPENDENCIES="dask=2022.7.0 distributed=2022.7.0 scipy<1.9"
DEPENDENCIES="dask-core=2022.7.0 distributed=2022.7.0 scipy<1.9"
fi

# re-including python=version[build=*cpython] to ensure that conda doesn't fall back to pypy
Expand Down Expand Up @@ -251,7 +251,7 @@ fi
make _lightgbm -j4 || exit -1

cd $BUILD_DIRECTORY/python-package && python setup.py install --precompile --user || exit -1
pytest $BUILD_DIRECTORY/tests || exit -1
pytest --exitfirst -rA -vv $BUILD_DIRECTORY/tests || exit -1

if [[ $TASK == "regular" ]]; then
if [[ $PRODUCES_ARTIFACTS == "true" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
matrix:
regular:
TASK: regular
PYTHON_VERSION: '3.9'
PYTHON_VERSION: '3.7'
sdist:
TASK: sdist
PYTHON_VERSION: '3.7'
Expand All @@ -52,7 +52,7 @@ jobs:
mpi_source:
TASK: mpi
METHOD: source
PYTHON_VERSION: '3.8'
PYTHON_VERSION: '3.7'
gpu_source:
TASK: gpu
METHOD: source
Expand Down
2 changes: 1 addition & 1 deletion tests/python_package_test/test_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import socket
from itertools import groupby
from os import getenv
from platform import machine
from platform import libc_ver, machine
from sys import platform
from urllib.parse import urlparse

Expand Down