diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 2c5e18a5..65e84006 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -62,10 +62,9 @@ jobs: CURRENT_DATE=$(date +'%Y-%m-%dT%H_%M_%S') # no colons allowed for artifacts echo "date=$CURRENT_DATE" >> $GITHUB_OUTPUT - # TODO: what setup is needed here? - # - name: Upload Unit Test Coverage to Codecov - # if: ${{ matrix.python-version == '3.11' }} - # uses: codecov/codecov-action@v3 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} - # flags: unit + - name: Upload Unit Test Coverage to Codecov + if: ${{ matrix.python-version == '3.11' }} + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + flags: unit diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..039a0715 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,13 @@ +ignore: + - ".github" + - ".changes" +coverage: + status: + project: + default: + target: auto + threshold: 0.1% # Reduce noise by ignoring rounding errors in coverage drops + patch: + default: + target: auto + threshold: 80%