Skip to content

Commit 280ddae

Browse files
authored
build: update actions/upload-artifact and actions/download-artifact (#1910)
* build: update actions/upload-artifact and actions/download-artifact * cater for breaking changes in v4
1 parent 3551acd commit 280ddae

File tree

1 file changed

+5
-5
lines changed
  • synthtool/gcp/templates/python_library/.github/workflows

1 file changed

+5
-5
lines changed

synthtool/gcp/templates/python_library/.github/workflows/unittest.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
run: |
2727
nox -s unit-${{ '{{' }} matrix.python {{ '}}' }}
2828
- name: Upload coverage results
29-
uses: actions/upload-artifact@v3
29+
uses: actions/upload-artifact@v4
3030
with:
31-
name: coverage-artifacts
31+
name: coverage-artifact-${{ '{{' }} matrix.python {{ '}}' }}
3232
path: .coverage-${{ '{{' }} matrix.python {{ '}}' }}
3333

3434
cover:
@@ -47,11 +47,11 @@ jobs:
4747
python -m pip install --upgrade setuptools pip wheel
4848
python -m pip install coverage
4949
- name: Download coverage results
50-
uses: actions/download-artifact@v3
50+
uses: actions/download-artifact@v4
5151
with:
52-
name: coverage-artifacts
5352
path: .coverage-results/
5453
- name: Report coverage results
5554
run: |
56-
coverage combine .coverage-results/.coverage*
55+
find .coverage-results -type f -name '*.zip' -exec unzip {} \;
56+
coverage combine .coverage-results/**/.coverage*
5757
coverage report --show-missing --fail-under={{ cov_level if cov_level != None else 100 }}

0 commit comments

Comments
 (0)