From bcc421c73e392f05d610894dff58eb4f512c4aef Mon Sep 17 00:00:00 2001 From: Plamen Valentinov Kolev Date: Tue, 26 Nov 2024 23:04:48 +0100 Subject: [PATCH] Use codecov.yaml --- .github/workflows/integration.yml | 2 -- .github/workflows/unit.yml | 2 -- codecov.yml | 12 ++++++++++++ 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 codecov.yml diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index d52dbe0ef..706640d16 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -43,8 +43,6 @@ jobs: - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.12 name: Upload integration codecov report uses: codecov/codecov-action@v4 - env: - CODECOV_THRESHOLD: "0.5" with: flags: integration file: ${{ github.workspace }}/integration_cov.xml diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 055fe53c5..63fb71f79 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -37,8 +37,6 @@ jobs: - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.12 name: Upload unit codecov report uses: codecov/codecov-action@v4 - env: - CODECOV_THRESHOLD: "0.5" with: flags: unit file: ${{ github.workspace }}/unit_cov.xml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..4c3c2bbd8 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,12 @@ +coverage: + precision: 2 + range: "90...100" + status: + project: + default: + target: auto + threshold: 1.0 + patch: + default: + target: auto + threshold: 1.0