Skip to content

Commit

Permalink
manually combine coverage reports, misc cleanup (#165)
Browse files Browse the repository at this point in the history
* test combining coverage files

* debug

* fix coverage path

* update naming

* run prettier

* backwards compatibility
  • Loading branch information
kernelsam authored Sep 5, 2024
1 parent d429428 commit 15c94c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ on:
required: true

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
docker-push-containers-to-dockerhub-and-ecr:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/python-coverage-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@ jobs:
- uses: actions/download-artifact@v4
id: download
with:
path: coverage-reports
pattern: coverage-*
merge-multiple: true

- name: Combine coverage reports
run: |
pipx run coverage combine coverage-reports/*coverage.*
- name: Coverage comment
id: coverage_comment
uses: py-cov-action/python-coverage-comment-action@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_COVERAGE_FILES: true

- name: Store Pull Request comment to be posted
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 15c94c5

Please sign in to comment.