Skip to content

Commit

Permalink
Merge pull request #565 from python-attrs/artifacts-v4
Browse files Browse the repository at this point in the history
Switch to (up|down)load-artifact@v4
  • Loading branch information
hynek authored Jul 31, 2024
2 parents ea7595b + ca6d0b6 commit c393abc
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
python -Im tox
- name: "Upload coverage data"
uses: "actions/upload-artifact@v3"
- name: Upload coverage data
uses: actions/upload-artifact@v4
with:
name: "coverage-data"
path: ".coverage.*"
if-no-files-found: "ignore"
name: coverage-data-${{ matrix.python-version }}
path: .coverage.*
if-no-files-found: ignore

coverage:
name: "Combine & check coverage."
Expand All @@ -54,9 +54,11 @@ jobs:

- run: "python -Im pip install --upgrade coverage[toml]"

- uses: "actions/download-artifact@v3"
- name: Download coverage data
uses: actions/download-artifact@v4
with:
name: "coverage-data"
pattern: coverage-data-*
merge-multiple: true

- name: "Combine coverage"
run: |
Expand All @@ -74,7 +76,7 @@ jobs:
python -Im coverage report --fail-under=99
- name: "Upload HTML report."
uses: "actions/upload-artifact@v3"
uses: "actions/upload-artifact@v4"
with:
name: "html-report"
path: "htmlcov"
Expand Down

0 comments on commit c393abc

Please sign in to comment.