Setup codecov.io to measure test coverage #696 (#739)

This commit is contained in:
Rajat Gupta
2023-09-30 23:56:49 +05:30
committed by GitHub
parent 28d41e9397
commit 57ecfca862
4 changed files with 15 additions and 2 deletions

View File

@@ -37,4 +37,4 @@ jobs:
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1

View File

@@ -26,3 +26,12 @@ jobs:
run: make ci_lint
- name: Test with pytest
run: make ci_test
- name: Generate coverage report
run: make coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
file: coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}