Commit b20211c 1 parent 896cecc commit b20211c Copy full SHA for b20211c
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ jobs:
112
112
env :
113
113
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
114
114
- name : Test coverage must be 100% passed!
115
- run : if [ "$( python -m coverage json -q -o /dev/stdout | jq .totals.percent_covered)" = " 100" ]; then exit; else exit 1; fi
115
+ run : if [ $(printf '%.0f' $( python -m coverage report | awk '$1 == "TOTAL" {print $NF+0}')) = 100 ]; then exit; else exit 1; fi
116
116
pypi :
117
117
name : PyPI
118
118
needs : [lint, unittest]
Original file line number Diff line number Diff line change 65
65
"label" : " Python: Package test report passed 100%" ,
66
66
"dependsOn" : " Python: Package test report" ,
67
67
"type" : " shell" ,
68
- "command" : " if [ $($ {command:python.interpreterPath} -m coverage json -q -o /dev/stdout | jq .totals.percent_covered ) = 100 ]; then exit; else exit 1; fi"
68
+ "command" : " if [ $(printf '%.0f' $($ {command:python.interpreterPath} -m coverage report | awk '$1 == \" TOTAL \" {print $NF+0}') ) = 100 ]; then exit; else exit 1; fi"
69
69
},
70
70
{
71
71
"label" : " Python: Package build" ,
You can’t perform that action at this time.
0 commit comments