@@ -218,7 +218,7 @@ jobs:
218
218
needs : build
219
219
if : needs.build.outputs.can-skip != 'true'
220
220
runs-on :
221
- group : BD_BJ_v100
221
+ group : BD_BJ-V100
222
222
steps :
223
223
- name : Download paddle.tar.gz and update test branch
224
224
run : |
@@ -315,15 +315,13 @@ jobs:
315
315
fi
316
316
'
317
317
318
- - name : Check coverage data
318
+ - name : Generate coverage information
319
319
run : |
320
320
docker exec -t ${{ env.container_name }} /bin/bash -c '
321
321
source ~/.bashrc
322
322
unset GREP_OPTIONS
323
323
source ${{ github.workspace }}/../../../proxy
324
324
source ${ci_scripts}/utils.sh; check_coverage
325
- COVERAGE_EXIT_CODE=$?
326
- echo "COVERAGE_EXIT_CODE=${COVERAGE_EXIT_CODE}" >> ${{ github.env }}
327
325
'
328
326
329
327
- name : Upload coverage report
@@ -333,12 +331,20 @@ jobs:
333
331
334
332
- name : Determine whether the coverage rate reaches 90%
335
333
run : |
334
+ docker exec -t ${{ env.container_name }} /bin/bash -c '
335
+ source ~/.bashrc
336
+ unset GREP_OPTIONS
337
+ source ${{ github.workspace }}/../../../proxy
338
+ source ${ci_scripts}/utils.sh
339
+ bash $ci_scripts/coverage_judge.sh
340
+ COVERAGE_EXIT_CODE=$?
336
341
if [ "${{ env.COVERAGE_EXIT_CODE }}" -ne 0 ]; then
337
- echo "Coverage check failed, unit test has passed, please do not rerun, check whether the code is fully executed and recommit."
342
+ echo "Coverage check failed, unit tests have all passed, please do not rerun, check whether the code has been fully executed and recommit."
338
343
exit ${{ env.COVERAGE_EXIT_CODE }}
339
344
else
340
345
echo "Coverage passed"
341
346
fi
347
+ '
342
348
343
349
- name : Terminate and delete the container
344
350
if : always()
0 commit comments