diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c29174b8..75ff44ce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,3 +49,13 @@ jobs: - name: Tests run: | pytest + + - name: Test with coverage + if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.python-version == '3.9' }} + run: | + pip install -e . + pip install coverage + CFLAGS="--coverage -O0" python setup.py -q build_ext --inplace -f + coverage run -m pytest + ./scripts/coverage.sh + bash <(curl -s https://codecov.io/bash) -X gcov diff --git a/scripts/coverage.sh b/scripts/coverage.sh old mode 100644 new mode 100755