Skip to content

Commit

Permalink
Add codecov upload to CI/CD.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoodsend committed Apr 6, 2021
1 parent adb7bac commit 47b8438
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -49,3 +49,15 @@ jobs:
- name: Tests
run: |
pytest
- name: Test with coverage
if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.python-version == '3.9' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
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
Empty file modified scripts/coverage.sh 100644 → 100755
Empty file.

0 comments on commit 47b8438

Please sign in to comment.