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 1aa4875 commit b286694
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:

- name: Upload coverage data
if: matrix.os != 'windows-2022'
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 @@ -67,9 +67,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 @@ -79,7 +81,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 b286694

Please sign in to comment.