Skip to content

Commit

Permalink
Merge pull request #20 from kitsuyui/coverage
Browse files Browse the repository at this point in the history
Run Coverage with matrix build
  • Loading branch information
kitsuyui authored Feb 24, 2023
2 parents 7b2074e + b283378 commit 5e52123
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,31 @@ jobs:
run: poetry run poe test

- name: Coverage
run: poetry run poe coverage-xml
run: |
poetry run poe coverage-xml
mv coverage.xml coverage-${{ matrix.python }}.xml
- name: Upload coverage
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage-${{ matrix.python }}.xml

send-coverage:
needs: test
runs-on: ubuntu-latest
steps:
- name: Download coverage
uses: actions/download-artifact@v3
with:
name: coverage
path: coverage-*.xml

- name: Upload coverage report to Codecov
if: matrix.python == '3.11'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
files: coverage-*.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
Expand Down

0 comments on commit 5e52123

Please sign in to comment.