diff --git a/.coveragerc b/.coveragerc index 1e1776fd566..46993e6abcc 100644 --- a/.coveragerc +++ b/.coveragerc @@ -11,11 +11,12 @@ plugins = Cython.Coverage core = ctrace branch = False relative_files = True -# Omits specific definition files that causes plugin errors +# Cython.Coverage cannot build a FileReporter for .pxd/.pxi (not standalone +# translation units). Pattern in [run], not an enumeration: a new file of +# either kind otherwise breaks `coverage html`. Must be [run], not [report]. omit = - */windll.pxd - */_lib/windll.pxd - */_lib/utils.pxd + */*.pxd + */*.pxi [report] show_missing = true diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index bea9d118991..465b89da2c5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -542,7 +542,8 @@ jobs: echo "=== Combining coverage data ===" coverage combine --rcfile=./.coveragerc --keep .coverage.* - # Generate reports + - name: Generate coverage reports + run: | echo "" echo "=== Generating HTML, XML, and text reports ===" coverage html --rcfile=./.coveragerc