Skip to content

Commit

Permalink
build: update actions/upload-artifact and actions/download-artifact (#…
Browse files Browse the repository at this point in the history
…1910)

* build: update actions/upload-artifact and actions/download-artifact

* cater for breaking changes in v4
  • Loading branch information
parthea committed Dec 14, 2023
1 parent 3551acd commit 280ddae
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
run: |
nox -s unit-${{ '{{' }} matrix.python {{ '}}' }}
- name: Upload coverage results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-artifacts
name: coverage-artifact-${{ '{{' }} matrix.python {{ '}}' }}
path: .coverage-${{ '{{' }} matrix.python {{ '}}' }}

cover:
Expand All @@ -47,11 +47,11 @@ jobs:
python -m pip install --upgrade setuptools pip wheel
python -m pip install coverage
- name: Download coverage results
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage-artifacts
path: .coverage-results/
- name: Report coverage results
run: |
coverage combine .coverage-results/.coverage*
find .coverage-results -type f -name '*.zip' -exec unzip {} \;
coverage combine .coverage-results/**/.coverage*
coverage report --show-missing --fail-under={{ cov_level if cov_level != None else 100 }}

0 comments on commit 280ddae

Please sign in to comment.