diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f4a8147..9b4c28f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,12 +28,13 @@ jobs: run: poetry install --no-interaction - name: Run tests - run: poetry run pytest + run: poetry run pytest --cov-report xml:coverage.xml - # upload coverage only on master branch - - name: Upload coverage - if: ${{ github.ref == 'refs/heads/master' }} - uses: codecov/codecov-action@v2 + - name: Get Cover + uses: orgoro/coverage@v3.1 + with: + coverageFile: coverage.xml + token: ${{ secrets.GITHUB_TOKEN }} # publish version only when pyproject.toml is changed in master - name: Filter changes in pyproject diff --git a/README.md b/README.md index 6337797..990b553 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ [![PyPI Version][pypi-image]][pypi-url] [![pre-commit.ci Status][pre-commit-ci-image]][pre-commit-ci-url] [![Build Status][build-image]][build-url] -[![Code Coverage][coverage-image]][coverage-url] @@ -11,8 +10,6 @@ [pre-commit-ci-url]: https://results.pre-commit.ci/latest/github/azogue/aiopvpc/master [build-image]: https://github.com/azogue/aiopvpc/actions/workflows/main.yml/badge.svg [build-url]: https://github.com/azogue/aiopvpc/actions/workflows/main.yml -[coverage-image]: https://codecov.io/gh/azogue/aiopvpc/branch/master/graph/badge.svg -[coverage-url]: https://codecov.io/gh/azogue/aiopvpc # aiopvpc