File tree Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -160,16 +160,35 @@ jobs:
160160 include-hidden-files : true
161161 if-no-files-found : ignore
162162 - name : Generate Coverage Report
163- run : ./test.sh report coverage.stumpy.xml
163+ run : ./test.sh report coverage.stumpy.json
164164 shell : bash
165165 - name : List Reports
166166 run : ls *json
167167 shell : bash
168- - name : Show Reports
169- run : head coverage.stumpy.json
170- shell : bash
171168 - name : Get Coverage Percentage
172169 run : |
173170 export TOTAL=$(python -c "import json;print(json.load(open('coverage.stumpy.json'))['totals']['percent_covered_display'])")
174171 echo $TOTAL
175172 shell : bash
173+ coverage-aggregation :
174+ name : Combine and Check Coverage
175+ if : always()
176+ needs : coverage
177+ runs-on : ubuntu-latest
178+ steps :
179+ - uses : actions/checkout@v4
180+ with :
181+ python-version : ' 3.12'
182+ - uses : actions/download-artifact@v4
183+ with :
184+ pattern : coverage-data-*
185+ merge-multiple : true
186+ - name : Combine Coverage Files and Fail If Under 100%
187+ run : ls .coverage.*
188+ shell : bash
189+ - name : Generate Coverage Report
190+ run : ./test.sh report coverage.stumpy.json
191+ shell : bash
192+ - name : Get Coverage Percentage
193+ run : |
194+ export TOTAL=$(python -c "import json;print(json.load(open('coverage.stumpy.json'))['totals']['percent_covered_display'])")
You can’t perform that action at this time.
0 commit comments