Skip to content

Modernize covr setup in GHA - #7968

Merged
MichaelChirico merged 2 commits into
masterfrom
modernize-covr
Dec 3, 2026
Merged

MichaelChirico merged 2 commits into
masterfrom
modernize-covr

Conversation

@MichaelChirico

@MichaelChirico MichaelChirico commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

With {covr} 4.1.0 now on CRAN, our setup can be modernized a bit.

Particularly helpful should be the new feature to mark partially-covered C branches as uncovered. This will of course produce an initial drop in package coverage (2 whole percent!), but that corrects the currently misleading figure.

LCOV supersedes cobertura (to_cobertura() is marked deprecated), and lets us drop the implicit requirement for {xml2}, which should simplify installation on the runner.

{parallel} is added to suggests to ensure covr.fix_parallel_mcexit = TRUE gets set and fix coverage for frollapply(): https://covr.r-lib.org/reference/code_coverage.html?q=fix_parallel_mcexit#parallel-code

@codecov

codecov Bot commented Dec 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.86%. Comparing base (1d749e2) to head (f3c8f07).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7968      +/-   ##
==========================================
- Coverage   99.01%   96.86%   -2.15%     
==========================================
  Files          88       87       -1     
  Lines       17495    17465      -30     
==========================================
- Hits        17323    16918     -405     
- Misses        172      547     +375     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MichaelChirico
MichaelChirico merged commit afb3764 into master Dec 3, 2026
12 of 13 checks passed
@MichaelChirico
MichaelChirico deleted the modernize-covr branch December 3, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants