[llvm] [CI] Update setup-python action to v5 for GHA (PR #95414)

Jannick Kremer via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 07:18:31 PDT 2024


https://github.com/DeinAlptraum created https://github.com/llvm/llvm-project/pull/95414

We currently receive a warning on all Github Actions workflows that use `setup-python`, since they all use v4 of the action, which uses the deprecated Node.js 16. This PR upgrades the action in all places to v5, which uses Node.js 20 (see [setup-python release page](https://github.com/actions/setup-python/releases/tag/v5.0.0))

>From 1b635920676fd57036139951f986ca012070e4cc Mon Sep 17 00:00:00 2001
From: Jannick Kremer <jannick-kremer at gmx.de>
Date: Thu, 13 Jun 2024 15:13:06 +0100
Subject: [PATCH] [CI] Update setup-python action to v5 for GHA

---
 .github/workflows/docs.yml                  | 2 +-
 .github/workflows/llvm-project-tests.yml    | 2 +-
 .github/workflows/pr-code-format.yml        | 2 +-
 .github/workflows/release-documentation.yml | 2 +-
 .github/workflows/release-doxygen.yml       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index d62485e2ebb66..800e929157353 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -100,7 +100,7 @@ jobs:
         with:
           fetch-depth: 1
       - name: Setup Python env
-        uses: actions/setup-python at v4
+        uses: actions/setup-python at v5
         with:
           python-version: '3.11'
           cache: 'pip'
diff --git a/.github/workflows/llvm-project-tests.yml b/.github/workflows/llvm-project-tests.yml
index a52dd2db8035d..0a228c41f354e 100644
--- a/.github/workflows/llvm-project-tests.yml
+++ b/.github/workflows/llvm-project-tests.yml
@@ -77,7 +77,7 @@ jobs:
       # lldb.  Using this setup-python action to make 3.10 the default
       # python fixes this.
       - name: Setup Python
-        uses: actions/setup-python at v4
+        uses: actions/setup-python at v5
         with:
           python-version: ${{ inputs.python_version }}
       - name: Install Ninja
diff --git a/.github/workflows/pr-code-format.yml b/.github/workflows/pr-code-format.yml
index 983838858ba43..0061ea46f37ab 100644
--- a/.github/workflows/pr-code-format.yml
+++ b/.github/workflows/pr-code-format.yml
@@ -58,7 +58,7 @@ jobs:
           clangformat: 18.1.1
 
       - name: Setup Python env
-        uses: actions/setup-python at v4
+        uses: actions/setup-python at v5
         with:
           python-version: '3.11'
           cache: 'pip'
diff --git a/.github/workflows/release-documentation.yml b/.github/workflows/release-documentation.yml
index 64572906988ba..70e5f08b6f72e 100644
--- a/.github/workflows/release-documentation.yml
+++ b/.github/workflows/release-documentation.yml
@@ -37,7 +37,7 @@ jobs:
         uses: actions/checkout at b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
 
       - name: Setup Python env
-        uses: actions/setup-python at v4
+        uses: actions/setup-python at v5
         with:
           cache: 'pip'
           cache-dependency-path: './llvm/docs/requirements.txt'
diff --git a/.github/workflows/release-doxygen.yml b/.github/workflows/release-doxygen.yml
index 12c14bea52f62..ef00a438ce7ac 100644
--- a/.github/workflows/release-doxygen.yml
+++ b/.github/workflows/release-doxygen.yml
@@ -39,7 +39,7 @@ jobs:
         uses: actions/checkout at b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
 
       - name: Setup Python env
-        uses: actions/setup-python at v4
+        uses: actions/setup-python at v5
         with:
           cache: 'pip'
           cache-dependency-path: './llvm/docs/requirements.txt'



More information about the llvm-commits mailing list