From 1bf17174a91b42f98f58a251ce51cf2297882ee8 Mon Sep 17 00:00:00 2001 From: jiaopu Date: Wed, 3 Jun 2020 14:47:32 +0800 Subject: [PATCH] Add run detection in CI --- .github/workflows/github-CI.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/github-CI.yml b/.github/workflows/github-CI.yml index b156275918..437f2c30b3 100644 --- a/.github/workflows/github-CI.yml +++ b/.github/workflows/github-CI.yml @@ -68,6 +68,7 @@ jobs: # [ `awk -v num=0 -v last=0 'BEGIN{} /average preprocess time/ {last=last*10+num; num=0} /START TO CONVERT/ {num++} END{print last}' log` -eq 171 ] [ `awk -v num=0 -v result=0 'BEGIN{} /compile_times/ {if($2!=num) result++; num=0 fi} /START TO CONVERT/ {num++} END{print result}' log` -eq 0 ] - name: test_classification_resnet50_without_batchsize_changeble + run: | cd /home/jiaopu/actions-runner/_work/Paddle-Lite/Paddle-Lite-models/classification PADDLE_LITE_MLU_DISABLE_BATCH_SIZE_CHANGEABLE=true ./classification_demo --gtest_filter="classification_test.resnet50" &> log [ `awk 'BEGIN {min=65536} /detected.*subgraph/ {if($6max) max=$7 fi} END {print max}' log` && [ `awk -v a=$hardware_time -v b=8 'BEGIN{print(a