Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
Testing coverage merging
  • Loading branch information
StevenMapes authored Sep 13, 2024
1 parent b8d1bba commit 7d3830e
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,28 @@ jobs:
- name: Run tox targets for ${{ matrix.python-version }}
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)

# - name: Upload coverage data
# uses: actions/upload-artifact@v4
# with:
# name: sm-coverage-data
# path: '.coverage.*'
- name: Upload coverage data
uses: actions/upload-artifact@v4
with:
name: sm-coverage-data
path: '.coverage.*'
name: coverage-data-${{ matrix.python-version }}
path: '${{ github.workspace }}/.coverage.*'
include-hidden-files: true
if-no-files-found: error

- name: Merge coverage reports
id: coverage
uses: selfagency/[email protected]
with:
source: ${{ github.workspace }}/${{ inputs.package }}
coverage-reports: ${{ github.workspace }}/${{ inputs.package }}/coverage
output-folder: ${{ github.workspace }}/${{ inputs.package }}/coverage-reports
formats: html
artifacts: false

# coverage:
# name: Coverage
Expand Down

0 comments on commit 7d3830e

Please sign in to comment.