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

Switch to upload-artifact/download-artifact v4 #670

Merged
merged 3 commits into from
Sep 7, 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
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
Empty file.
Loading