Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
436f8267
Unverified
Commit
436f8267
authored
Oct 05, 2024
by
James Lamb
Committed by
GitHub
Oct 05, 2024
Browse files
[ci] replace uses of 'mamba' with 'conda', use Python 12 for test-python-latest-job (#6663)
parent
d1d218c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
.ci/test.sh
.ci/test.sh
+6
-6
.github/workflows/python_package.yml
.github/workflows/python_package.yml
+1
-1
No files found.
.ci/test.sh
View file @
436f8267
...
@@ -66,7 +66,7 @@ fi
...
@@ -66,7 +66,7 @@ fi
CONDA_PYTHON_REQUIREMENT
=
"python=
$PYTHON_VERSION
[build=*cpython]"
CONDA_PYTHON_REQUIREMENT
=
"python=
$PYTHON_VERSION
[build=*cpython]"
if
[[
$TASK
==
"if-else"
]]
;
then
if
[[
$TASK
==
"if-else"
]]
;
then
mamb
a create
-q
-y
-n
$CONDA_ENV
${
CONDA_PYTHON_REQUIREMENT
}
numpy
cond
a create
-q
-y
-n
$CONDA_ENV
${
CONDA_PYTHON_REQUIREMENT
}
numpy
source
activate
$CONDA_ENV
source
activate
$CONDA_ENV
cmake
-B
build
-S
.
||
exit
1
cmake
-B
build
-S
.
||
exit
1
cmake
--build
build
--target
lightgbm
-j4
||
exit
1
cmake
--build
build
--target
lightgbm
-j4
||
exit
1
...
@@ -95,7 +95,7 @@ if [[ $TASK == "swig" ]]; then
...
@@ -95,7 +95,7 @@ if [[ $TASK == "swig" ]]; then
fi
fi
if
[[
$TASK
==
"lint"
]]
;
then
if
[[
$TASK
==
"lint"
]]
;
then
mamb
a create
-q
-y
-n
$CONDA_ENV
\
cond
a create
-q
-y
-n
$CONDA_ENV
\
${
CONDA_PYTHON_REQUIREMENT
}
\
${
CONDA_PYTHON_REQUIREMENT
}
\
'cmakelint>=1.4.3'
\
'cmakelint>=1.4.3'
\
'cpplint>=1.6.0'
\
'cpplint>=1.6.0'
\
...
@@ -116,10 +116,10 @@ fi
...
@@ -116,10 +116,10 @@ fi
if
[[
$TASK
==
"check-docs"
]]
||
[[
$TASK
==
"check-links"
]]
;
then
if
[[
$TASK
==
"check-docs"
]]
||
[[
$TASK
==
"check-links"
]]
;
then
cd
"
${
BUILD_DIRECTORY
}
/docs"
cd
"
${
BUILD_DIRECTORY
}
/docs"
mamb
a
env
create
\
cond
a
env
create
\
-n
$CONDA_ENV
\
-n
$CONDA_ENV
\
--file
./env.yml
||
exit
1
--file
./env.yml
||
exit
1
mamb
a
install
\
cond
a
install
\
-q
\
-q
\
-y
\
-y
\
-n
$CONDA_ENV
\
-n
$CONDA_ENV
\
...
@@ -157,7 +157,7 @@ else
...
@@ -157,7 +157,7 @@ else
CONDA_REQUIREMENT_FILES
=
"--file
${
BUILD_DIRECTORY
}
/.ci/conda-envs/ci-core.txt"
CONDA_REQUIREMENT_FILES
=
"--file
${
BUILD_DIRECTORY
}
/.ci/conda-envs/ci-core.txt"
fi
fi
mamb
a create
\
cond
a create
\
-y
\
-y
\
-n
$CONDA_ENV
\
-n
$CONDA_ENV
\
${
CONDA_REQUIREMENT_FILES
}
\
${
CONDA_REQUIREMENT_FILES
}
\
...
@@ -306,7 +306,7 @@ matplotlib.use\(\"Agg\"\)\
...
@@ -306,7 +306,7 @@ matplotlib.use\(\"Agg\"\)\
'
plot_example.py
# prevent interactive window mode
'
plot_example.py
# prevent interactive window mode
sed
-i
'.bak'
's/graph.render(view=True)/graph.render(view=False)/'
plot_example.py
sed
-i
'.bak'
's/graph.render(view=True)/graph.render(view=False)/'
plot_example.py
# requirements for examples
# requirements for examples
mamb
a
install
-y
-n
$CONDA_ENV
\
cond
a
install
-y
-n
$CONDA_ENV
\
'h5py>=3.10'
\
'h5py>=3.10'
\
'ipywidgets>=8.1.2'
\
'ipywidgets>=8.1.2'
\
'notebook>=7.1.2'
'notebook>=7.1.2'
...
...
.github/workflows/python_package.yml
View file @
436f8267
...
@@ -115,7 +115,7 @@ jobs:
...
@@ -115,7 +115,7 @@ jobs:
--rm \
--rm \
-v $(pwd):/opt/lgb-build \
-v $(pwd):/opt/lgb-build \
-w /opt/lgb-build \
-w /opt/lgb-build \
python:3.1
1
\
python:3.1
2
\
/bin/bash ./.ci/test-python-latest.sh
/bin/bash ./.ci/test-python-latest.sh
test-oldest-versions
:
test-oldest-versions
:
name
:
Python - oldest supported versions (ubuntu-latest)
name
:
Python - oldest supported versions (ubuntu-latest)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment