From 1a9bad9dd3ee995aaa758c3ce10dbfa94f3ef133 Mon Sep 17 00:00:00 2001 From: Sam Kleinman Date: Thu, 9 Sep 2021 15:58:52 -0400 Subject: [PATCH] ci: tweak code coverage settings (#6920) --- .github/codecov.yml | 25 +++++++++++++++++++++++++ .github/workflows/coverage.yml | 4 ++++ 2 files changed, 29 insertions(+) create mode 100644 .github/codecov.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 000000000..63645f9ee --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,25 @@ +coverage: + precision: 2 + round: down + range: "70...100" + status: + project: + default: + threshold: 20% + patch: on + changes: off + +github_checks: + annotations: false + +comment: false + +ignore: + - "docs" + - "DOCKER" + - "scripts" + - "**/*.pb.go" + - "libs/pubsub/query/query.peg.go" + - "*.md" + - "*.rst" + - "*.yml" diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ccbcfb220..7d312b4f8 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -121,3 +121,7 @@ jobs: - run: | cat ./*profile.out | grep -v "mode: atomic" >> coverage.txt if: env.GIT_DIFF + - uses: codecov/codecov-action@v2.0.3 + with: + file: ./coverage.txt + if: env.GIT_DIFF