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

[ci] replace uses of 'mamba' with 'conda', use Python 12 for test-python-latest-job #6663

Merged
merged 4 commits into from
Oct 6, 2024
Merged
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
12 changes: 6 additions & 6 deletions .ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fi
CONDA_PYTHON_REQUIREMENT="python=$PYTHON_VERSION[build=*cpython]"

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

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

if [[ $TASK == "check-docs" ]] || [[ $TASK == "check-links" ]]; then
cd "${BUILD_DIRECTORY}/docs"
mamba env create \
conda env create \
-n $CONDA_ENV \
--file ./env.yml || exit 1
mamba install \
conda install \
-q \
-y \
-n $CONDA_ENV \
Expand Down Expand Up @@ -157,7 +157,7 @@ else
CONDA_REQUIREMENT_FILES="--file ${BUILD_DIRECTORY}/.ci/conda-envs/ci-core.txt"
fi

mamba create \
conda create \
-y \
-n $CONDA_ENV \
${CONDA_REQUIREMENT_FILES} \
Expand Down Expand Up @@ -306,7 +306,7 @@ matplotlib.use\(\"Agg\"\)\
' plot_example.py # prevent interactive window mode
sed -i'.bak' 's/graph.render(view=True)/graph.render(view=False)/' plot_example.py
# requirements for examples
mamba install -y -n $CONDA_ENV \
conda install -y -n $CONDA_ENV \
'h5py>=3.10' \
'ipywidgets>=8.1.2' \
'notebook>=7.1.2'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
--rm \
-v $(pwd):/opt/lgb-build \
-w /opt/lgb-build \
python:3.11 \
python:3.12 \
/bin/bash ./.ci/test-python-latest.sh
test-oldest-versions:
name: Python - oldest supported versions (ubuntu-latest)
Expand Down
Loading