From 280ddaed417057dfe5b1395731de07b7d09f5058 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 14 Dec 2023 17:12:01 -0500 Subject: [PATCH] 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 --- .../python_library/.github/workflows/unittest.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/synthtool/gcp/templates/python_library/.github/workflows/unittest.yml b/synthtool/gcp/templates/python_library/.github/workflows/unittest.yml index 29ec8b6ae..bb2871dde 100644 --- a/synthtool/gcp/templates/python_library/.github/workflows/unittest.yml +++ b/synthtool/gcp/templates/python_library/.github/workflows/unittest.yml @@ -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: @@ -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 }}