1
0
Fork 0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-04-19 16:34:04 +02:00

Add codecov upload to CI/CD.

This commit is contained in:
bwoodsend 2021-03-30 23:10:41 +01:00
parent adb7bac0ae
commit 47b84384c5
2 changed files with 12 additions and 0 deletions

View File

@ -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

0
scripts/coverage.sh Normal file → Executable file
View File