Skip to content

Commit

Permalink
Workaround for downloading coverage data
Browse files Browse the repository at this point in the history
  • Loading branch information
staticdev committed Dec 16, 2023
1 parent 16d03a6 commit c4c905a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
if: always() && matrix.session == 'tests' && matrix.os == 'ubuntu-latest'
uses: "actions/upload-artifact@v4"
with:
name: coverage-data
name: coverage-data-${{ matrix.python }}-${{ matrix.os }}
path: ".coverage.*"

- name: Upload documentation
Expand Down Expand Up @@ -114,12 +114,18 @@ jobs:
hatch --version
- name: Download coverage data
uses: actions/download-artifact@v3
with:
name: coverage-data
uses: actions/download-artifact@v4

- name: Combine coverage data and display human readable report
run: |
shopt -s dotglob
mv coverage-data-3.12-windows-latest/* .
mv coverage-data-3.12-ubuntu-latest/* .
mv coverage-data-3.11-ubuntu-latest/* .
mv coverage-data-3.10-ubuntu-latest/* .
mv coverage-data-3.9-ubuntu-latest/* .
mv coverage-data-3.8-ubuntu-latest/* .
mv coverage-data-3.12-macos-latest/* .
hatch run coverage:run
- name: Create coverage report
Expand Down

0 comments on commit c4c905a

Please sign in to comment.