From 1884dcb283b739b89fdd5fdfd8c1ca0ad8845092 Mon Sep 17 00:00:00 2001 From: Emily Rockman <ebuschang@gmail.com> Date: Tue, 30 Jan 2024 07:38:51 -0600 Subject: [PATCH] add codecov (#42) * add codecov * add yaml * fix command * actually add coverage report... * Update pyproject.toml --- .github/workflows/ci_tests.yml | 13 ++++++------- codecov.yml | 13 +++++++++++++ 2 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 codecov.yml 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%