diff --git a/codecov.yaml b/codecov.yaml index e946dd107ae..f1b7a3f57f6 100644 --- a/codecov.yaml +++ b/codecov.yaml @@ -1,53 +1,48 @@ codecov: + # The default branch is used to identify: + # Which branch to cache the repository YAML for UI changes. + # Which branch is the first branch on the repository dashboard in Codecov. branch: main + # Show the Codecov status without waiting for other status checks to complete or pass. require_ci_to_pass: no -comment: - layout: "reach,diff,flags,tree" - behavior: default - require_changes: no - require_base: no - require_head: no - after_n_builds: 1 - show_carryforward_flags: true +comment: false github_checks: + # Specify whether to use GitHub Checks annotations or normal statuses. annotations: true coverage: status: patch: default: + # Choose a minimum coverage ratio that the commit must meet to be considered a success. + # specify a target of an exact coverage number. target: 70% + # Allow the coverage to drop by X%, and posting a success status. threshold: 5% + # Use the pull request base if the commit is on a pull request. If not, the parent commit will be used. base: auto + # Only post a status to pull requests. only_pulls: true flags: - unit-tests project: default: + # `auto` will use the coverage from the base commit (pull request base or parent commit) coverage to compare against. target: auto antrea-unit-tests: target: auto + # Flags are a list of user defined Flags, and the impact on their coverage. flags: - unit-tests - antrea-integration-tests: - target: auto - flags: - - integration-tests - antrea-e2e-tests: - target: auto - flags: - - e2e-tests - antrea-kind-e2e-tests: - target: auto - flags: - - kind-e2e-tests + flag_management: default_rules: carryforward: true +# Exclude files from being collected by Codecov. Ignored files will be skipped during processing. ignore: - "**/testing/*.go" - "**/mock_*.go"