Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Codecov configuration; anything not set here keeps Codecov's default.
# Reference: https://docs.codecov.com/docs/codecovyml-reference
#
# What reaches Codecov is already scoped by gcovr, which filters to src/ and
# include/ (see config.cmake/OMSimulatorCoverage.cmake). 3rdParty/ and
# testsuite/ never make it into coverage.xml, so there is nothing to ignore
# here.

codecov:
# The coverage job deliberately uploads even when the testsuite fails, so
# that a red run still tells us what it covered. Waiting for CI to go green
# would throw exactly those reports away.
require_ci_to_pass: false

coverage:
status:
# Informational for now: comment the numbers on every PR, but never block a
# merge on them. There is only one coverage run (linux/gcc) and no agreed
# target yet, so a failing check would be noise rather than a signal. Drop
# `informational` once a baseline is settled and the numbers are trusted.
project:
default:
informational: true
patch:
default:
informational: true

comment:
# diff = coverage of the lines this PR touches, files = the per-file
# breakdown. That is the part worth reading in a PR; the rest lives in the
# Codecov UI.
layout: "condensed_header, diff, files, condensed_footer"
1 change: 1 addition & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
run: cmake --build build/ --target coverage-report

- name: Upload to Codecov
if: github.event.pull_request.head.repo.fork != true
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down