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
2d358d5d
Unverified
Commit
2d358d5d
authored
Oct 25, 2023
by
Oliver Borchert
Committed by
GitHub
Oct 25, 2023
Browse files
[ci] use `mamba` instead of `conda` in macOS and Linux CI jobs (#6140)
parent
8ed371ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
.ci/test.sh
.ci/test.sh
+6
-6
No files found.
.ci/test.sh
View file @
2d358d5d
...
@@ -37,7 +37,7 @@ fi
...
@@ -37,7 +37,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
cond
a create
-q
-y
-n
$CONDA_ENV
${
CONDA_PYTHON_REQUIREMENT
}
numpy
mamb
a create
-q
-y
-n
$CONDA_ENV
${
CONDA_PYTHON_REQUIREMENT
}
numpy
source
activate
$CONDA_ENV
source
activate
$CONDA_ENV
mkdir
$BUILD_DIRECTORY
/build
&&
cd
$BUILD_DIRECTORY
/build
&&
cmake ..
&&
make lightgbm
-j4
||
exit
-1
mkdir
$BUILD_DIRECTORY
/build
&&
cd
$BUILD_DIRECTORY
/build
&&
cmake ..
&&
make lightgbm
-j4
||
exit
-1
cd
$BUILD_DIRECTORY
/tests/cpp_tests
&&
../../lightgbm
config
=
train.conf
convert_model_language
=
cpp
convert_model
=
../../src/boosting/gbdt_prediction.cpp
&&
../../lightgbm
config
=
predict.conf
output_result
=
origin.pred
||
exit
-1
cd
$BUILD_DIRECTORY
/tests/cpp_tests
&&
../../lightgbm
config
=
train.conf
convert_model_language
=
cpp
convert_model
=
../../src/boosting/gbdt_prediction.cpp
&&
../../lightgbm
config
=
predict.conf
output_result
=
origin.pred
||
exit
-1
...
@@ -67,7 +67,7 @@ fi
...
@@ -67,7 +67,7 @@ fi
if
[[
$TASK
==
"lint"
]]
;
then
if
[[
$TASK
==
"lint"
]]
;
then
cd
${
BUILD_DIRECTORY
}
cd
${
BUILD_DIRECTORY
}
cond
a create
-q
-y
-n
$CONDA_ENV
\
mamb
a create
-q
-y
-n
$CONDA_ENV
\
${
CONDA_PYTHON_REQUIREMENT
}
\
${
CONDA_PYTHON_REQUIREMENT
}
\
cmakelint
\
cmakelint
\
cpplint
\
cpplint
\
...
@@ -87,10 +87,10 @@ fi
...
@@ -87,10 +87,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
cond
a
env
create
\
mamb
a
env
create
\
-n
$CONDA_ENV
\
-n
$CONDA_ENV
\
--file
./env.yml
||
exit
-1
--file
./env.yml
||
exit
-1
cond
a
install
\
mamb
a
install
\
-q
\
-q
\
-y
\
-y
\
-n
$CONDA_ENV
\
-n
$CONDA_ENV
\
...
@@ -128,7 +128,7 @@ if [[ $PYTHON_VERSION == "3.7" ]]; then
...
@@ -128,7 +128,7 @@ if [[ $PYTHON_VERSION == "3.7" ]]; then
fi
fi
# including python=version[build=*cpython] to ensure that conda doesn't fall back to pypy
# including python=version[build=*cpython] to ensure that conda doesn't fall back to pypy
cond
a create
-q
-y
-n
$CONDA_ENV
\
mamb
a create
-q
-y
-n
$CONDA_ENV
\
${
CONSTRAINED_DEPENDENCIES
}
\
${
CONSTRAINED_DEPENDENCIES
}
\
cloudpickle
\
cloudpickle
\
joblib
\
joblib
\
...
@@ -304,7 +304,7 @@ matplotlib.use\(\"Agg\"\)\
...
@@ -304,7 +304,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
cond
a
install
-q
-y
-n
$CONDA_ENV
\
mamb
a
install
-q
-y
-n
$CONDA_ENV
\
h5py
\
h5py
\
ipywidgets
\
ipywidgets
\
notebook
notebook
...
...
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