From 8744b6793bae07daa4d93d5d2b805e94bc96af12 Mon Sep 17 00:00:00 2001 From: federico jaureguialzo Date: Fri, 29 Dec 2023 21:07:27 +0100 Subject: [PATCH] Update upload/download artifacts action to v4 --- CHANGELOG.md | 2 ++ .../.github/workflows/tests.yml | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fef0c78d..c81272f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - github/codeql-action from `v2` to `v3`. - coverage from `^7.3.2` to `^7.4.0`. - pypa/gh-action-pypi-publish from from `v1.8.10` to `v1.8.11`. +- actions/upload-artifact from `v2.2.4` to `v4`. +- actions/download-artifact from `v2.0.10` to `v4`. ### Removed - falke8 and flakeheaven. diff --git a/{{cookiecutter.project_name}}/.github/workflows/tests.yml b/{{cookiecutter.project_name}}/.github/workflows/tests.yml index 9c95b18a..5d67746d 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/tests.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/tests.yml @@ -67,10 +67,11 @@ jobs: run: nox --force-color -s security - name: Upload coverage data - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v4 with: - name: coverage-data + name: ${{ matrix.os }}-${{ matrix.python-version }}.coverage-data path: ".coverage.*" + retention-days: 2 coverage: needs: tests @@ -91,9 +92,10 @@ jobs: poetry config virtualenvs.in-project true - name: Download coverage data - uses: actions/download-artifact@v2.0.10 + uses: actions/download-artifact@v4 with: - name: coverage-data + pattern: "*.coverage-data" + merge-multiple: true - name: Create coverage report shell: bash