Skip to content

Commit

Permalink
fixup! Use coverage directly instead of dwas for reporting coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminSchubert committed Dec 30, 2023
1 parent 59961b3 commit 3f2d343
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
cache: pip

- name: Install coverage
run: python -m pip install coverage
run: python -m pip install coverage[toml]

- name: Download generated coverage files
uses: actions/download-artifact@v4
Expand All @@ -166,19 +166,25 @@ jobs:
pattern: coverage-*
path: reports/

- name: debug
run: find reports
- name: Combine coverage files
run: coverage combine reports/**/coverage

- name: Generate coverage report
run: dwas --verbose --only coverage
- name: Generate coverage summary
run: coverage report --show-missing | tee "${GITHUB_STEP_SUMMARY}"

- name: Generate xml coverage
run: coverage xml -o _artifacts/coverage.xml

- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
files: ./_artifacts/coverage/coverage.xml
files: ./_artifacts/coverage.xml
fail_ci_if_error: true
verbose: true

- name: Generate html coverage
run: coverage html --directory _artifacts/coverage/html

- name: Save coverage report
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 3f2d343

Please sign in to comment.