Skip to content

Commit

Permalink
Upload Codecov reports with GitHub Actions
Browse files Browse the repository at this point in the history
76b4e38
https://github.com/marketplace/actions/codecov
https://docs.codecov.io/docs

This commit will update the GitHub Actions workflows to upload test
coverage reports to Codecov.
  • Loading branch information
br3ndonland committed Sep 13, 2020
1 parent 76b4e38 commit 2db56f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
run: pre-commit run --all-files
- name: Run unit tests
run: pytest --cov-report=xml
- name: Upload test coverage report to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
flags: unittests
- name: Build Python package and publish to PyPI
if: startsWith(github.ref, 'refs/tags/')
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ jobs:
run: poetry install --no-interaction -E fastapi
- name: Run unit tests
run: pytest --cov-report=xml
- name: Upload test coverage report to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
flags: unittests

0 comments on commit 2db56f9

Please sign in to comment.