Skip to content
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

ci: upgrade to v4 of upload/download-artifact actions #455

Merged
merged 2 commits into from
Feb 21, 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
16 changes: 8 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ jobs:
sha256sum * | tee SHA256SUMS

- name: Upload Python artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-${{ github.run_attempt }}
path: dist
if-no-files-found: error

- name: Upload Javascript artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jsdist
name: jsdist-${{ github.run_attempt }}
path: jsdist
if-no-files-found: error

Expand All @@ -93,9 +93,9 @@ jobs:
python-version: "3.11"

- name: Download artifacts from build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
name: dist-${{ github.run_attempt }}
path: dist

# The PyPI publishing action will try to publish this checksum file as if
Expand Down Expand Up @@ -125,9 +125,9 @@ jobs:
registry-url: https://registry.npmjs.org

- name: Download artifacts from build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: jsdist
name: jsdist-${{ github.run_attempt }}
path: jsdist

- run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
run: pyproject-build

- name: Upload built artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist-${{ github.run_number }}
name: dist-${{ github.run_attempt }}
path: ./dist

test:
Expand Down Expand Up @@ -94,9 +94,9 @@ jobs:
run: pip install --upgrade pip

- name: Download built artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist-${{ github.run_number }}
name: dist-${{ github.run_attempt }}
path: ./dist

- name: Install Python package
Expand Down Expand Up @@ -152,10 +152,10 @@ jobs:

- name: Upload test reports
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: |-
tests-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pip-extras }}-${{ github.run_number }}
tests-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pip-extras }}-${{ github.run_attempt }}
path: |
./build/pytest
./build/coverage
Expand Down
Loading