Skip to content

Upgrade upload-artifact and download-artifact actions to v4 #1589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Get Packages
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.0
with:
name: ${{ needs.package.outputs.artifact-name }}
path: dist
Expand All @@ -84,9 +84,9 @@ jobs:

- name: Store Coverage Data
if: always() && contains('success,failure', steps.test.outcome)
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.0.0
with:
name: coverage-data
name: coverage-data-${{ matrix.platform }}-${{ matrix.python-version }}
path: ".coverage.*"
if-no-files-found: ignore

Expand Down Expand Up @@ -122,9 +122,10 @@ jobs:
python -m install_requirement tox --extra dev

- name: Retrieve Coverage Data
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.0
with:
name: coverage-data
pattern: coverage-data-*
merge-multiple: true

- name: Platform Coverage Reports
id: platform-coverage
Expand All @@ -139,7 +140,7 @@ jobs:

- name: Upload Project Coverage HTML Report
if: always() && steps.project-coverage.outcome == 'failure'
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.0.0
with:
name: html-coverage-report-project
path: htmlcov
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
python-version: "3.x"

- name: Get packages
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.0
with:
name: ${{ needs.ci.outputs.artifact-name }}
path: dist
Expand Down
1 change: 1 addition & 0 deletions changes/1589.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The ``upload-artifact`` and ``download-artifact`` CI actions were upgraded to v4.