Skip to content

Commit 436f826

Browse files
authored
[ci] replace uses of 'mamba' with 'conda', use Python 12 for test-python-latest-job (#6663)
1 parent d1d218c commit 436f826

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.ci/test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fi
6666
CONDA_PYTHON_REQUIREMENT="python=$PYTHON_VERSION[build=*cpython]"
6767

6868
if [[ $TASK == "if-else" ]]; then
69-
mamba create -q -y -n $CONDA_ENV ${CONDA_PYTHON_REQUIREMENT} numpy
69+
conda create -q -y -n $CONDA_ENV ${CONDA_PYTHON_REQUIREMENT} numpy
7070
source activate $CONDA_ENV
7171
cmake -B build -S . || exit 1
7272
cmake --build build --target lightgbm -j4 || exit 1
@@ -95,7 +95,7 @@ if [[ $TASK == "swig" ]]; then
9595
fi
9696

9797
if [[ $TASK == "lint" ]]; then
98-
mamba create -q -y -n $CONDA_ENV \
98+
conda create -q -y -n $CONDA_ENV \
9999
${CONDA_PYTHON_REQUIREMENT} \
100100
'cmakelint>=1.4.3' \
101101
'cpplint>=1.6.0' \
@@ -116,10 +116,10 @@ fi
116116

117117
if [[ $TASK == "check-docs" ]] || [[ $TASK == "check-links" ]]; then
118118
cd "${BUILD_DIRECTORY}/docs"
119-
mamba env create \
119+
conda env create \
120120
-n $CONDA_ENV \
121121
--file ./env.yml || exit 1
122-
mamba install \
122+
conda install \
123123
-q \
124124
-y \
125125
-n $CONDA_ENV \
@@ -157,7 +157,7 @@ else
157157
CONDA_REQUIREMENT_FILES="--file ${BUILD_DIRECTORY}/.ci/conda-envs/ci-core.txt"
158158
fi
159159

160-
mamba create \
160+
conda create \
161161
-y \
162162
-n $CONDA_ENV \
163163
${CONDA_REQUIREMENT_FILES} \
@@ -306,7 +306,7 @@ matplotlib.use\(\"Agg\"\)\
306306
' plot_example.py # prevent interactive window mode
307307
sed -i'.bak' 's/graph.render(view=True)/graph.render(view=False)/' plot_example.py
308308
# requirements for examples
309-
mamba install -y -n $CONDA_ENV \
309+
conda install -y -n $CONDA_ENV \
310310
'h5py>=3.10' \
311311
'ipywidgets>=8.1.2' \
312312
'notebook>=7.1.2'

.github/workflows/python_package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
--rm \
116116
-v $(pwd):/opt/lgb-build \
117117
-w /opt/lgb-build \
118-
python:3.11 \
118+
python:3.12 \
119119
/bin/bash ./.ci/test-python-latest.sh
120120
test-oldest-versions:
121121
name: Python - oldest supported versions (ubuntu-latest)

0 commit comments

Comments
 (0)