This commit is contained in:
parent
c39b9f9eb7
commit
0e10f51bff
@ -9,7 +9,6 @@ on:
|
||||
jobs:
|
||||
test:
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@ -62,18 +61,14 @@ jobs:
|
||||
python -c "
|
||||
import json
|
||||
import os
|
||||
|
||||
# Read coverage data
|
||||
if os.path.exists('coverage.json'):
|
||||
with open('coverage.json', 'r') as f:
|
||||
coverage_data = json.load(f)
|
||||
|
||||
total_coverage = round(coverage_data['totals']['percent_covered'], 1)
|
||||
|
||||
# Create coverage summary file
|
||||
with open('coverage-summary.txt', 'w') as f:
|
||||
f.write(f'{total_coverage}%')
|
||||
|
||||
print(f'Test Coverage: {total_coverage}%')
|
||||
else:
|
||||
print('No coverage data found')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user