@@ -258,19 +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- # Alternatively you can run coverage with the --parallel flag or add
262- # ` parallel = True` in the coverage config file.
263- # If using pytest-cov, you can also add the `--cov-append` flag
264- # directly or through PYTEST_ADD_OPTS .
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 .
265265
266266 - name: Store coverage file
267267 uses: actions/upload-artifact@v4
268268 with:
269269 name: coverage-${{ matrix.python_version }}
270270 path: .coverage.${{ matrix.python_version }}
271271 # By default hidden files/folders (i.e. starting with .) are ignored.
272- # You may prefer (for security reason) not setting this and instead
273- # 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"
274276 include-hidden-files : true
275277
276278 coverage :
0 commit comments