Skip to content

Commit

Permalink
use codacy-coverage-reporter action
Browse files Browse the repository at this point in the history
  • Loading branch information
widdowquinn committed Feb 24, 2024
1 parent 4c3fc85 commit 341e3a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ jobs:
- name: Codacy Coverage Report
run:
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
-l Python -r .coverage-linux-${{ matrix.python-version }}.xml
-r .coverage-linux-${{ matrix.python-version }}.xml
if: ${{ always() }}

- name: Codecov Coverage Report
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
files: .coverage-linux-${{ matrix.python-version }}.xml # optional
name: codecov-umbrella # optional
name: codecov-umbrella-linux-${{ matrix.python-version }}.xml # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true # optional (default = false)
if: ${{ always() }}
13 changes: 7 additions & 6 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,27 @@ jobs:
- name: Run Tests with pytest
run: python -m pytest -v --cov=pyani --cov-report=xml:.coverage-macos-${{ matrix.python-version }}.xml

- name: Upload coverage Results
- name: Upload coverage results
uses: actions/upload-artifact@v4
with:
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-macos-${{ matrix.python-version }}.xml
- name: Codacy Coverage Reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: .coverage-linux-${{ matrix.python-version }}.xml
if: ${{ always() }}

- name: Codecov Coverage Report
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
files: .coverage-macos-${{ matrix.python-version }}.xml # optional
name: codecov-umbrella # optional
name: codecov-umbrella-macos-${{ matrix.python-version }}.xml # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true # optional (default = false)
if: ${{ always() }}

0 comments on commit 341e3a5

Please sign in to comment.