Skip to content

Commit fffa91c

Browse files
authored
[Feature Enhancement] Install nightly built paddlepaddle of develop on ci. (#167)
* Install nightly built paddlepaddle of develop on ci. * Disable the skip temprorally to test the install of paddlepaddle. * Add print of version information. * Add some log and change skip back.
1 parent 5e9415a commit fffa91c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tools/ci/check_validate.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@ function prepare_env() {
2828
env http_proxy="" https_proxy="" pip install -U pip > /dev/null
2929
[ $? -ne 0 ] && LOG "[FATAL] Update pip failed!" && exit -1
3030
# install torch
31-
pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/cu118
31+
LOG "[INFO] Install torch==2.7.0 ..."
32+
pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/cu118 > /dev/null
33+
[ $? -ne 0 ] && LOG "[FATAL] Install torch2.7.0 failed!" && exit -1
34+
python -c "import torch; print('[PyTorch Version]', torch.__version__)"
35+
# install paddlepaddle of develop
36+
LOG "[INFO] Install paddlepaddle-develop ..."
37+
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu118/ > /dev/null
38+
[ $? -ne 0 ] && LOG "[FATAL] Install paddlepaddle-develop failed!" && exit -1
39+
python -c "import paddle; print('[PaddlePaddle Commit]', paddle.version.commit)"
3240
}
3341

3442
function check_validation() {
@@ -50,7 +58,7 @@ function check_validation() {
5058
done
5159
if [ ${#fail_name[@]} -ne 0 ]
5260
then
53-
LOG "[FATAL] Failed tests: ${fail_name[@]}"
61+
LOG "[FATAL] Failed samples: ${fail_name[@]}"
5462
echo ${fail_name[@]}
5563
exit -1
5664
fi
@@ -63,7 +71,7 @@ function summary_problems() {
6371
then
6472
LOG "[FATAL] ============================================"
6573
LOG "[FATAL] Summary problems:"
66-
LOG "[FATAL] === API test error - Please fix the failed API tests accroding to fatal log:"
74+
LOG "[FATAL] === Sample validate error - Please fix the failed samples according to fatal log:"
6775
LOG "[FATAL] $check_validation_info"
6876
exit $check_validation_code
6977
fi

0 commit comments

Comments
 (0)