Skip to content

Commit

Permalink
fix coverage filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
widdowquinn committed Feb 24, 2024
1 parent 3218f8e commit 4c3fc85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: python -m pytest -v --collect-only

- name: Run Tests with pytest
run: python -m pytest -v --cov=pyani --cov-report=xml:.coverage-${{ matrix.python-version }}.xml
run: python -m pytest -v --cov=pyani --cov-report=xml:.coverage-linux-${{ matrix.python-version }}.xml

- name: Upload coverage Results
uses: actions/upload-artifact@v4
Expand All @@ -87,10 +87,8 @@ jobs:
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
files: ./coverage1.xml,./coverage2.xml # optional
flags: unittests # optional
files: .coverage-linux-${{ matrix.python-version }}.xml # optional
name: codecov-umbrella # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true # optional (default = false)
if: ${{ always() }}

5 changes: 2 additions & 3 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: python -m pytest -v --collect-only

- name: Run Tests with pytest
run: python -m pytest -v --cov=pyani --cov-report=xml:.coverage-${{ matrix.python-version }}.xml
run: python -m pytest -v --cov=pyani --cov-report=xml:.coverage-macos-${{ matrix.python-version }}.xml

- name: Upload coverage Results
uses: actions/upload-artifact@v4
Expand All @@ -87,8 +87,7 @@ jobs:
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
files: ./coverage1.xml,./coverage2.xml # optional
flags: unittests # optional
files: .coverage-macos-${{ matrix.python-version }}.xml # optional
name: codecov-umbrella # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true # optional (default = false)
Expand Down

0 comments on commit 4c3fc85

Please sign in to comment.