From 25ecd37d7d1773e0fbe9217fce177a8e4d27a19c Mon Sep 17 00:00:00 2001 From: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Date: Fri, 15 Sep 2023 07:12:39 +0200 Subject: [PATCH] Added codecov --- .github/workflows/codecov_workflow.yml | 12 ++++++++++++ codecov.yml | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/codecov_workflow.yml create mode 100644 codecov.yml diff --git a/.github/workflows/codecov_workflow.yml b/.github/workflows/codecov_workflow.yml new file mode 100644 index 0000000..7295f04 --- /dev/null +++ b/.github/workflows/codecov_workflow.yml @@ -0,0 +1,12 @@ +name: Codecov +permissions: read-all + +on: + [push, pull_request] + +jobs: + build: + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..b2a0e98 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,10 @@ +coverage: + status: + project: + default: + target: 50% + threshold: 1% + +comment: + require_changes: true + require_ci_to_pass: false