File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ jobs:
112
112
source $work_dir/../../../proxy
113
113
source $work_dir/../../../AISTUDIO_ACCESS_TOKEN
114
114
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}
116
116
'
117
117
118
118
- name : Upload Products
Original file line number Diff line number Diff line change @@ -21,10 +21,7 @@ export nlp_dir=/workspace/PaddleFormers
21
21
export log_path=/workspace/PaddleFormers/model_unittest_logs
22
22
export model_unittest_path=/workspace/PaddleFormers/scripts/regression
23
23
cd $nlp_dir
24
-
25
- if [ ! -d " model_unittest_logs" ]; then
26
- mkdir model_unittest_logs
27
- fi
24
+ mkdir -p $log_path
28
25
29
26
install_requirements () {
30
27
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
107
104
echo ' Testing all model unittest cases '
108
105
unset http_proxy && unset https_proxy
109
106
set +e
110
- DOWNLOAD_SOURCE=aistudio WAIT_UNTIL_DONE=True \
111
107
PYTHONPATH=$( pwd) \
112
108
COVERAGE_SOURCE=paddleformers \
113
109
python -m pytest -s -v ${model_unittest_path} > ${log_path} /model_unittest.log 2>&1
Original file line number Diff line number Diff line change @@ -20,10 +20,7 @@ export FLAGS_enable_CE=${2-false}
20
20
export nlp_dir=/workspace/PaddleFormers
21
21
export log_path=/workspace/PaddleFormers/unittest_logs
22
22
cd $nlp_dir
23
-
24
- if [ ! -d " unittest_logs" ]; then
25
- mkdir unittest_logs
26
- fi
23
+ mkdir -p $log_path
27
24
28
25
install_requirements () {
29
26
python -m pip config --user set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
You can’t perform that action at this time.
0 commit comments