Skip to content

Commit

Permalink
Now using recommended way to report coverage to Codacy.
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
christophe-david committed Mar 14, 2023
1 parent a8bd5d6 commit 6e6257e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ jobs:
poetry run coverage xml # for sending coverage report
shell: bash

- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
- name: Run codacy coverage reporter
if: ${{ runner.os == 'Linux' && matrix.python-version == '3.9' }} # This action runs only on Linux
with:
project-token: ${{ secrets.codacy }}
coverage-reports: coverage.xml
env:
CODACY_PROJECT_TOKEN: ${{ secrets.codacy }}
run: |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.xml
shell: bash

- name: Publish code coverage on Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 6e6257e

Please sign in to comment.