diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 638dafdfe..706640d16 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -39,10 +39,12 @@ jobs: run: | invoke integration invoke benchmark-dtypes - - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 + + - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.12 name: Upload integration codecov report uses: codecov/codecov-action@v4 with: flags: integration - file: './integration_cov.xml' + file: ${{ github.workspace }}/integration_cov.xml + fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 3e54b6197..63fb71f79 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -34,10 +34,11 @@ jobs: python -m pip install invoke .[test] - name: Run unit tests run: invoke unit - - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 + - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.12 name: Upload unit codecov report uses: codecov/codecov-action@v4 with: flags: unit - file: './unit_cov.xml' + file: ${{ github.workspace }}/unit_cov.xml + fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore index 81d92bed1..7fda2b3a4 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,7 @@ coverage.xml *.cover .hypothesis/ .pytest_cache/ +*_cov.xml # Translations *.mo 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