Skip to content

Commit

Permalink
upload coverage output to Codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
widdowquinn committed Feb 24, 2024
1 parent 9d19147 commit 282d910
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ jobs:
- name: Upload coverage Results
uses: actions/upload-artifact@v4
with:
name: test-coverage-${{ matrix.python-version }}
path: .coverage-${{ matrix.python-version }}.xml
retention-days: 1
name: test-coverage-linux-${{ matrix.python-version }}
path: .coverage-linux-${{ matrix.python-version }}.xml
retention-days: 3
if: ${{ always() }}

- name: Codacy Coverage Report
run:
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
-l Python -r .coverage-linux-${{ matrix.python-version }}.xml
if: ${{ always() }}
12 changes: 9 additions & 3 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ jobs:
- name: Upload coverage Results
uses: actions/upload-artifact@v4
with:
name: test-coverage-${{ matrix.python-version }}
path: .coverage-${{ matrix.python-version }}.xml
retention-days: 1
name: test-coverage-macos-${{ matrix.python-version }}
path: .coverage-macos-${{ matrix.python-version }}.xml
retention-days: 3
if: ${{ always() }}

- name: Codacy Coverage Report
run:
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
-l Python -r .coverage-linux-${{ matrix.python-version }}.xml
if: ${{ always() }}

0 comments on commit 282d910

Please sign in to comment.