File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,6 @@ jobs:
169
169
run : |
170
170
set -xe
171
171
export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])")
172
- export PCTINT=$(echo $TOTAL | cut -f1 -d.)
173
172
export SHA10=$(echo ${{ github.sha }} | cut -c 1-10)
174
173
export SLUG=$(date +'%Y%m%d')_$SHA10
175
174
export REPORT_DIR=reports/$SLUG/htmlcov
@@ -180,10 +179,6 @@ jobs:
180
179
echo "report_dir=$REPORT_DIR" >> $GITHUB_ENV
181
180
echo "url=https://nedbat.github.io/coverage-reports/$REPORT_DIR" >> $GITHUB_ENV
182
181
echo "branch=${REF#refs/heads/}" >> $GITHUB_ENV
183
- if (($PCTINT >= 85)); then echo "badge_color=green"; fi >> $GITHUB_ENV
184
- if (($PCTINT < 85)); then echo "badge_color=yellow"; fi >> $GITHUB_ENV
185
- if (($PCTINT < 70)); then echo "badge_color=orange"; fi >> $GITHUB_ENV
186
- if (($PCTINT < 60)); then echo "badge_color=red"; fi >> $GITHUB_ENV
187
182
188
183
- name : " Download coverage HTML report"
189
184
uses : actions/download-artifact@v3
@@ -223,7 +218,9 @@ jobs:
223
218
filename : metacov.json
224
219
label : Coverage
225
220
message : ${{ env.total }}%
226
- color : ${{ env.badge_color }}
221
+ minColorRange : 60
222
+ maxColorRange : 95
223
+ valColorRange : ${{ env.total }}
227
224
228
225
- name : " Create summary"
229
226
run : |
You can’t perform that action at this time.
0 commit comments