diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0aa3cda6..2827333d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -139,6 +139,11 @@ jobs: coverage html -d coverage/html genbadge coverage -i coverage/coverage.xml -o coverage/badge.svg + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Commit and push if: github.event_name == 'pull_request' uses: EndBug/add-and-commit@v9 diff --git a/README.md b/README.md index b05f7589..dc22c489 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ![PyPI - License](https://img.shields.io/pypi/l/capsula) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/capsula) ![Test Status](https://github.com/shunichironomura/capsula/workflows/Test/badge.svg?event=push&branch=main) -![Coverage Status](coverage/badge.svg?dummy=8484744) +[![codecov](https://codecov.io/gh/shunichironomura/capsula/graph/badge.svg?token=BZXF2PPDM0)](https://codecov.io/gh/shunichironomura/capsula) ![PyPI - Downloads](https://img.shields.io/pypi/dm/capsula) > [!NOTE]