Skip to content

Commit

Permalink
Upgrade GitHub Actions artifact actions
Browse files Browse the repository at this point in the history
Thanks to Mark Walker for the required changes to the coverage workflow.
  • Loading branch information
adamchainz committed Mar 12, 2024
1 parent c5493c2 commit 5ebe42f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/main.yml
Expand Up @@ -43,10 +43,10 @@ jobs:
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)

- name: Upload coverage data
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-data
path: '.coverage.*'
name: coverage-data-${{ matrix.python-version }}
path: '${{ github.workspace }}/.coverage.*'

coverage:
name: Coverage
Expand All @@ -63,9 +63,11 @@ jobs:
run: python -m pip install --upgrade coverage[toml]

- name: Download data
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage-data
path: ${{ github.workspace }}
pattern: coverage-data-*
merge-multiple: true

- name: Combine coverage and fail if it's <100%
run: |
Expand All @@ -75,7 +77,7 @@ jobs:
- name: Upload HTML report
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-report
path: htmlcov

0 comments on commit 5ebe42f

Please sign in to comment.