File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -258,15 +258,21 @@ jobs:
258258 run: make test # This is the part where you put your own test command
259259 env:
260260 COVERAGE_FILE: ".coverage.${{ matrix.python_version }}"
261+ # The file name prefix must be ".coverage." for "coverage combine"
262+ # enabled by "MERGE_COVERAGE_FILES: true" to work. A "subprocess"
263+ # error with the message "No data to combine" will be triggered if
264+ # this prefix is not used.
261265
262266 - name: Store coverage file
263267 uses: actions/upload-artifact@v4
264268 with:
265269 name: coverage-${{ matrix.python_version }}
266270 path: .coverage.${{ matrix.python_version }}
267271 # By default hidden files/folders (i.e. starting with .) are ignored.
268- # You may prefer (for security reason) not setting this and instead
269- # set COVERAGE_FILE above to not start with a ` .`
272+ # You may prefer (for security reasons) not setting this and instead
273+ # set COVERAGE_FILE above to not start with a ` .`, but you cannot
274+ # use "MERGE_COVERAGE_FILES: true" later on and need to manually
275+ # combine the coverage file using "pipx run coverage combine"
270276 include-hidden-files : true
271277
272278 coverage :
You can’t perform that action at this time.
0 commit comments