Skip to content

Commit

Permalink
Merge pull request #455 from consideRatio/pr/upgrade-artifact-upload
Browse files Browse the repository at this point in the history
ci: upgrade to v4 of upload/download-artifact actions
  • Loading branch information
consideRatio authored Feb 21, 2024
2 parents 5622083 + 995080e commit 5de9c53
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
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

0 comments on commit 5de9c53

Please sign in to comment.