Skip to content

Commit da34e8c

Browse files
committed
Fix model unittest CI
1 parent 05ea002 commit da34e8c

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.github/workflows/model-unittest-gpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
source $work_dir/../../../proxy
113113
source $work_dir/../../../AISTUDIO_ACCESS_TOKEN
114114
cp -r $work_dir/../../../models ./models
115-
timeout 30m bash scripts/unit_test/ci_model_unittest.sh ${paddle_whl}
115+
timeout 30m bash scripts/regression/ci_model_unittest.sh ${paddle_whl}
116116
'
117117
118118
- name: Upload Products

scripts/unit_test/ci_model_unittest.sh renamed to scripts/regression/ci_model_unittest.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ export nlp_dir=/workspace/PaddleFormers
2121
export log_path=/workspace/PaddleFormers/model_unittest_logs
2222
export model_unittest_path=/workspace/PaddleFormers/scripts/regression
2323
cd $nlp_dir
24-
25-
if [ ! -d "model_unittest_logs" ];then
26-
mkdir model_unittest_logs
27-
fi
24+
mkdir -p $log_path
2825

2926
install_requirements() {
3027
python -m pip config --user set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
@@ -107,7 +104,6 @@ if [[ ${FLAGS_enable_CI} == "true" ]] || [[ ${FLAGS_enable_CE} == "true" ]];then
107104
echo ' Testing all model unittest cases '
108105
unset http_proxy && unset https_proxy
109106
set +e
110-
DOWNLOAD_SOURCE=aistudio WAIT_UNTIL_DONE=True \
111107
PYTHONPATH=$(pwd) \
112108
COVERAGE_SOURCE=paddleformers \
113109
python -m pytest -s -v ${model_unittest_path} > ${log_path}/model_unittest.log 2>&1

scripts/unit_test/ci_unittest.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ export FLAGS_enable_CE=${2-false}
2020
export nlp_dir=/workspace/PaddleFormers
2121
export log_path=/workspace/PaddleFormers/unittest_logs
2222
cd $nlp_dir
23-
24-
if [ ! -d "unittest_logs" ];then
25-
mkdir unittest_logs
26-
fi
23+
mkdir -p $log_path
2724

2825
install_requirements() {
2926
python -m pip config --user set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

0 commit comments

Comments
 (0)