Skip to content

Commit a0a5d55

Browse files
Merge branch 'master' into ci
2 parents 12052f8 + 504c481 commit a0a5d55

File tree

166 files changed

+7650
-4943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+7650
-4943
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ e4e238a9ed8f2ad2b9060247591b4c057c2953bf
3030

3131
# 2025-08-09 style: ruff check --fix --fixable=I001,Q000 coverage/*.py
3232
a32cd74bc0aaf0714acaf37beb21c84cbe2ee3ff
33+
34+
# 2025-08-21 chore: `ruff format .`
35+
82467f72306efdb207af09ace27b6b3ed4c7ad6f

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ assignees: ''
1111
A clear and concise description of the bug.
1212

1313
**To Reproduce**
14-
How can we reproduce the problem? Please *be specific*. Don't link to a failing CI job. Answer the questions below:
14+
How can we reproduce the problem? Please *be specific*. Don't link to a failing CI job. Think about the time it will take us to recreate your situation: the easier you make it, the more likely your issue will be addressed.
15+
16+
Answer the questions below:
1517
1. What version of Python are you using?
1618
1. What version of coverage.py shows the problem? The output of `coverage debug sys` is helpful.
1719
1. What versions of what packages do you have installed? The output of `pip freeze` is helpful.
18-
1. What code shows the problem? Give us a specific commit of a specific repo that we can check out. If you've already worked around the problem, please provide a commit before that fix.
20+
1. What code shows the problem? Give us a *specific commit* of a *specific repo* that we can check out. If you've already worked around the problem, please provide a commit before that fix.
1921
1. What commands should we run to reproduce the problem? *Be specific*. Include everything, even `git clone`, `pip install`, and so on. Explain like we're five!
2022

2123
**Expected behavior**

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ jobs:
4545

4646
steps:
4747
- name: Checkout repository
48-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4949
with:
5050
persist-credentials: false
5151

5252
# Initializes the CodeQL tools for scanning.
5353
- name: Initialize CodeQL
54-
uses: github/codeql-action/init@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3
54+
uses: github/codeql-action/init@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3
5555
with:
5656
languages: ${{ matrix.language }}
5757
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -62,7 +62,7 @@ jobs:
6262
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6363
# If this step fails, then you should remove it and run the build manually (see below)
6464
- name: Autobuild
65-
uses: github/codeql-action/autobuild@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3
65+
uses: github/codeql-action/autobuild@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3
6666

6767
# ℹ️ Command-line programs to run using the OS shell.
6868
# 📚 https://git.io/JvXDl
@@ -76,4 +76,4 @@ jobs:
7676
# make release
7777

7878
- name: Perform CodeQL Analysis
79-
uses: github/codeql-action/analyze@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3
79+
uses: github/codeql-action/analyze@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3

.github/workflows/coverage.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
workflow: ${{ steps.filter.outputs.workflow }}
4040
steps:
4141
- name: "Check out the repo"
42-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
42+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4343
with:
4444
persist-credentials: false
4545

@@ -54,6 +54,7 @@ jobs:
5454
- "**.c"
5555
- ".github/workflows/coverage.yml"
5656
- "tox.ini"
57+
- "metacov.ini"
5758
- "requirements/*.pip"
5859
- "tests/gold/**"
5960
@@ -122,7 +123,7 @@ jobs:
122123

123124
steps:
124125
- name: "Check out the repo"
125-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
126+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
126127
with:
127128
persist-credentials: false
128129

@@ -183,7 +184,7 @@ jobs:
183184

184185
steps:
185186
- name: "Check out the repo"
186-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
187+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
187188
with:
188189
persist-credentials: false
189190

@@ -211,7 +212,7 @@ jobs:
211212
python igor.py zip_mods
212213
213214
- name: "Download coverage data"
214-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
215+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
215216
with:
216217
pattern: metacov-*
217218
merge-multiple: true
@@ -231,6 +232,14 @@ jobs:
231232
path: htmlcov
232233
include-hidden-files: true
233234

235+
- name: "Show text report"
236+
run: |
237+
set -xe
238+
echo "## Coverage: $(python -m coverage report --format=total)%" >> $GITHUB_STEP_SUMMARY
239+
echo '```' >> $GITHUB_STEP_SUMMARY
240+
python -m coverage report --skip-covered >> $GITHUB_STEP_SUMMARY
241+
echo '```' >> $GITHUB_STEP_SUMMARY
242+
234243
- name: "Get total"
235244
id: total
236245
run: |
@@ -261,12 +270,6 @@ jobs:
261270
echo "url=https://htmlpreview.github.io/?https://github.com/nedbat/coverage-reports/blob/main/reports/$SLUG/htmlcov/index.html" >> $GITHUB_ENV
262271
echo "branch=${REF#refs/heads/}" >> $GITHUB_ENV
263272
264-
- name: "Summarize"
265-
env:
266-
TOTAL: ${{ needs.combine.outputs.total }}
267-
run: |
268-
echo "### TOTAL coverage: ${TOTAL}%" >> $GITHUB_STEP_SUMMARY
269-
270273
- name: "Checkout reports repo"
271274
if: ${{ github.ref == 'refs/heads/master' }}
272275
env:
@@ -283,7 +286,7 @@ jobs:
283286
284287
- name: "Download coverage HTML report"
285288
if: ${{ github.ref == 'refs/heads/master' }}
286-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
289+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
287290
with:
288291
name: html_report
289292
path: reports_repo/${{ env.report_dir }}

.github/workflows/dependency-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: 'Checkout Repository'
27-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2828
with:
2929
persist-credentials: false
3030

3131
- name: 'Dependency Review'
32-
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1
32+
uses: actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b # v4.7.3
3333
with:
3434
base-ref: ${{ github.event.pull_request.base.sha || 'master' }}
3535
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}

.github/workflows/kit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167

168168
steps:
169169
- name: "Check out the repo"
170-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
170+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
171171
with:
172172
persist-credentials: false
173173

@@ -224,7 +224,7 @@ jobs:
224224
runs-on: ubuntu-latest
225225
steps:
226226
- name: "Check out the repo"
227-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
227+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
228228
with:
229229
persist-credentials: false
230230

@@ -272,7 +272,7 @@ jobs:
272272
id-token: write
273273
steps:
274274
- name: "Download artifacts"
275-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
275+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
276276
with:
277277
pattern: dist-*
278278
merge-multiple: true

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
steps:
6666
- name: "Download dists"
67-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
67+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
6868
with:
6969
repository: "nedbat/coveragepy"
7070
run-id: ${{ needs.find-run.outputs.run-id }}
@@ -81,7 +81,7 @@ jobs:
8181
files=$(ls dist 2>/dev/null | wc -l) && [ "$files" -eq $EXPECTED ] || exit 1
8282
8383
- name: "Generate attestations"
84-
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0
84+
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
8585
with:
8686
subject-path: "dist/*"
8787

@@ -104,7 +104,7 @@ jobs:
104104

105105
steps:
106106
- name: "Download dists"
107-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
107+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
108108
with:
109109
repository: "nedbat/coveragepy"
110110
run-id: ${{ needs.find-run.outputs.run-id }}
@@ -121,7 +121,7 @@ jobs:
121121
files=$(ls dist 2>/dev/null | wc -l) && [ "$files" -eq $EXPECTED ] || exit 1
122122
123123
- name: "Generate attestations"
124-
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0
124+
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
125125
with:
126126
subject-path: "dist/*"
127127

.github/workflows/python-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
steps:
6161
- name: "Check out the repo"
62-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
62+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6363
with:
6464
persist-credentials: false
6565

.github/workflows/quality.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
workflow: ${{ steps.filter.outputs.workflow }}
3939
steps:
4040
- name: "Check out the repo"
41-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4242
with:
4343
persist-credentials: false
4444

@@ -73,7 +73,7 @@ jobs:
7373

7474
steps:
7575
- name: "Check out the repo"
76-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
76+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7777
with:
7878
persist-credentials: false
7979

@@ -101,7 +101,7 @@ jobs:
101101

102102
steps:
103103
- name: "Check out the repo"
104-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
104+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
105105
with:
106106
persist-credentials: false
107107

@@ -129,7 +129,7 @@ jobs:
129129

130130
steps:
131131
- name: "Check out the repo"
132-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
132+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
133133
with:
134134
persist-credentials: false
135135

@@ -168,12 +168,12 @@ jobs:
168168

169169
steps:
170170
- name: Checkout repository
171-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
171+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
172172
with:
173173
persist-credentials: false
174174

175175
- name: Install the latest version of uv
176-
uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc #v6.4.3
176+
uses: astral-sh/setup-uv@4959332f0f014c5280e7eac8b70c90cb574c9f9b #v6.6.0
177177
with:
178178
enable-cache: false
179179

.github/workflows/testsuite.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run_tests: ${{ steps.filter.outputs.run_tests }}
3838
steps:
3939
- name: "Check out the repo"
40-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4141
with:
4242
persist-credentials: false
4343

@@ -109,7 +109,7 @@ jobs:
109109

110110
steps:
111111
- name: "Check out the repo"
112-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
112+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
113113
with:
114114
persist-credentials: false
115115

0 commit comments

Comments
 (0)