diff --git a/.github/workflows/job-unit-tests.yml b/.github/workflows/job-unit-tests.yml index b77f41d6b..c056c5524 100644 --- a/.github/workflows/job-unit-tests.yml +++ b/.github/workflows/job-unit-tests.yml @@ -146,6 +146,11 @@ jobs: flag-name: ${{ steps.lcov.outputs.name }} path-to-lcov: './lcov.info' parallel: true + - name: Codecov Upload + if: ${{ !env.ACT && inputs.cc == 'gcc-9' && inputs.coverage }} + uses: codecov/codecov-action@v3 + with: + files: './lcov.info' - uses: actions/upload-artifact@v2 if: ${{ failure() && !env.ACT }} with: diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..07eb8f3e9 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,28 @@ +# https://docs.codecov.io/docs/codecovyml-reference +codecov: + require_ci_to_pass: yes + notify: + wait_for_ci: yes + after_n_builds: 9 + +coverage: + precision: 4 + round: down + range: "75...100" + status: + project: + default: + target: auto + threshold: 3% + base: auto + flags: + - unit + paths: + - src + +comment: + layout: "reach, diff, files" + behavior: default + require_changes: false + require_base: no + require_head: yes