Skip to content

Commit

Permalink
Bump GitHub Actions artifacts to v4 (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
amureki committed Apr 17, 2024
1 parent 6d8eaee commit 1d75853
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Expand Up @@ -79,10 +79,11 @@ 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
name: coverage-data-${{ matrix.python-version }}
path: '.coverage.*'
if-no-files-found: ignore

coverage:
name: Coverage
Expand All @@ -99,9 +100,10 @@ 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
pattern: coverage-data-*
merge-multiple: true

- name: Combine coverage and fail if it's <95%
run: |
Expand All @@ -111,7 +113,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 1d75853

Please sign in to comment.