Skip to content

Commit

Permalink
Skip upload of LCOV file to Codacy
Browse files Browse the repository at this point in the history
The files can't be read by Codacy, see codacy/codacy-coverage-reporter#510 (comment).
  • Loading branch information
Spacetown committed Sep 8, 2024
1 parent 933c5e6 commit ab2d6ff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/upload_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion != 'cancelled' }}
steps:
- uses: actions/checkout@v4

- name: Download artifacts
uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11
with:
Expand All @@ -26,7 +24,8 @@ jobs:
run: |
# Search the coverage files and upload them
bash <(curl -Ls https://coverage.codacy.com/get.sh) report --partial -l python --force-coverage-parser cobertura $(find . -name 'coverage.xml' -print | sed -e 's/^/ -r /' | tr -d '\n')
bash <(curl -Ls https://coverage.codacy.com/get.sh) report --partial -l C --force-coverage-parser lcov $(find . -regex '.*/nested/reference/.*/coverage\.lcov' -print | sed -e 's/^/ -r /' | tr -d '\n')
# Do not upload lcov because of https://github.com/codacy/codacy-coverage-reporter/issues/510#issuecomment-2297469928
# bash <(curl -Ls https://coverage.codacy.com/get.sh) report --partial -l C --force-coverage-parser lcov $(find . -regex '.*/nested/reference/.*/coverage\.lcov' -print | sed -e 's/^/ -r /' | tr -d '\n')
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}

Expand Down

0 comments on commit ab2d6ff

Please sign in to comment.