Skip to content

Commit 8e5c604

Browse files
committed
comment final
1 parent 67de428 commit 8e5c604

File tree

1 file changed

+28
-20
lines changed

1 file changed

+28
-20
lines changed

.github/workflows/pr-code-coverage.yml

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,15 @@ jobs:
154154
# Extract file coverage data more reliably
155155
LOW_COVERAGE_FILES=$(grep -o '<td><a href="[^"]*">[^<]*</a></td><td class="right">[0-9]*</td><td class="right">[0-9]*</td><td class="right">[0-9]*</td><td class="right">[0-9]*</td><td title="[^"]*" class="right">[0-9]*\.[0-9]*%' "$INDEX_FILE" | \
156156
sed 's/<td><a href="[^"]*">\([^<]*\)<\/a><\/td>.*class="right">\([0-9]*\.[0-9]*\)%/\1: \2%/' | \
157-
sort -t: -k2 -n | head -5)
157+
sort -t: -k2 -n | head -10)
158158
159159
# Alternative method if above fails
160160
if [[ -z "$LOW_COVERAGE_FILES" ]]; then
161161
echo "Trying alternative file parsing..."
162162
LOW_COVERAGE_FILES=$(grep -E "\.py.*[0-9]+\.[0-9]+%" "$INDEX_FILE" | \
163163
grep -o "[^>]*\.py[^<]*</a>.*[0-9]*\.[0-9]*%" | \
164164
sed 's/\([^<]*\)<\/a>.*\([0-9]*\.[0-9]*\)%/\1: \2%/' | \
165-
sort -t: -k2 -n | head -5)
165+
sort -t: -k2 -n | head -10)
166166
fi
167167
168168
echo "LOW_COVERAGE_FILES<<EOF" >> $GITHUB_ENV
@@ -193,18 +193,16 @@ jobs:
193193
194194
<table>
195195
<tr>
196-
<td align="center" width="100">
196+
<td align="center" width="200">
197197
198198
### 🎯 Coverage
199-
## **${{ env.COVERAGE_PERCENTAGE }}**
200-
199+
### **${{ env.COVERAGE_PERCENTAGE }}**
200+
<br>
201201
</td>
202-
<td width="20"></td>
203202
<td>
204203
205204
**📈 Lines Covered:** `${{ env.COVERED_LINES }}` out of `${{ env.TOTAL_LINES }}`
206205
**📁 Project:** `mssql-python`
207-
**🔍 Parser:** `Cobertura`
208206
209207
</td>
210208
</tr>
@@ -221,20 +219,30 @@ jobs:
221219
${{ env.LOW_COVERAGE_FILES }}
222220
```
223221
224-
> 💡 **Tip:** Focus on improving coverage for these files to boost overall project health
225-
226222
</details>
227223
228224
---
229-
230-
<div align="center">
231-
232225
### 🔗 Quick Links
233-
234-
| � **Build Status** | 📊 **Coverage Details** |
235-
|:---:|:---:|
236-
| [View Azure DevOps Build](${{ env.ADO_URL }}) | [Browse Full Coverage Report](${{ env.ADO_URL }}&view=codecoverage-tab) |
237-
238-
</div>
239-
240-
<sub>🤖 This report was automatically generated from Azure DevOps build artifacts</sub>
226+
227+
<table>
228+
<tr>
229+
<td align="left" width="200">
230+
<b>⚙️ Build Summary</b>
231+
</td>
232+
<td align="left">
233+
<b>📋 Coverage Details</b>
234+
</td>
235+
</tr>
236+
<tr>
237+
<td align="left" width="200">
238+
239+
[View Azure DevOps Build](${{ env.ADO_URL }})
240+
241+
</td>
242+
<td align="left">
243+
244+
[Browse Full Coverage Report](${{ env.ADO_URL }}&view=codecoverage-tab)
245+
246+
</td>
247+
</tr>
248+
</table>

0 commit comments

Comments
 (0)