From 7e580bca7c154f20bdb9355b7c3dc7a72acdf1e3 Mon Sep 17 00:00:00 2001 From: Bastian Krause Date: Tue, 13 Feb 2024 14:24:13 +0100 Subject: [PATCH] github/workflows: update GitHub actions to latest versions Fixes deprecation warnings such as: Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v4, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/. When bumping codecov/codecov-action v3 to v4, we run into [1]. The changes needed for this change [2] are not clear, yet. Let's stick to the previous version for now. [1] https://github.com/codecov/codecov-action/issues/1274 [2] https://about.codecov.io/blog/january-product-update-updating-the-codecov-ci-uploaders-to-the-codecov-cli/ Signed-off-by: Bastian Krause --- .github/workflows/build-and-release.yml | 2 +- .github/workflows/reusable-unit-tests.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 2edeb4cf0..390dad4cf 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -11,7 +11,7 @@ jobs: with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.11" - name: Install python dependencies diff --git a/.github/workflows/reusable-unit-tests.yml b/.github/workflows/reusable-unit-tests.yml index c79d7318e..16a26f0c6 100644 --- a/.github/workflows/reusable-unit-tests.yml +++ b/.github/workflows/reusable-unit-tests.yml @@ -19,10 +19,10 @@ jobs: with: ref: ${{ inputs.branch }} - name: Set up Python ${{ inputs.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}