Skip to content

Commit

Permalink
Switch to upload-artifact/download-artifact v4
Browse files Browse the repository at this point in the history
Fixes #669.
  • Loading branch information
twm committed Sep 7, 2024
1 parent aa285c0 commit 717ace3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- run: nox -e ${{ matrix.task.nox }}

- name: Publish
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- uses: actions/checkout@v3

- name: Download package files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
Expand All @@ -104,9 +104,9 @@ jobs:
- run: nox --python ${{ matrix.python.action }} -e ${{ matrix.task.nox }} -- --use-wheel dist/*.whl

- name: Upload coverage data
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-data
name: coverage-data-${{ matrix.python.action }}
path: .coverage.*
include-hidden-files: true
if-no-files-found: ignore
Expand All @@ -131,7 +131,7 @@ jobs:
- uses: actions/checkout@v3

- name: Download package files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
fetch-depth: 0

- name: Download package files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:
- uses: actions/checkout@v3

- name: Download package files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
Expand Down Expand Up @@ -283,9 +283,11 @@ jobs:

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

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

- name: Combine coverage & fail if it's <100%.
run: |
Expand All @@ -299,10 +301,11 @@ jobs:
python -Im coverage report --fail-under=100
- name: Upload HTML report if check failed.
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-report
path: htmlcov
include-hidden-files: true
if: ${{ failure() }}

# This is a meta-job to simplify PR CI enforcement configuration in GitHub.
Expand Down
1 change: 1 addition & 0 deletions src/towncrier/newsfragments/669.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add your info here

0 comments on commit 717ace3

Please sign in to comment.