SELinux Archive mirror
 help / color / mirror / Atom feed
From: "Christian Göttsche" <cgoettsche@seltendoof.de>
To: selinux@vger.kernel.org
Cc: "Christian Göttsche" <cgzones@googlemail.com>
Subject: [PATCH] github: bump Python and Ruby versions
Date: Mon,  8 Apr 2024 17:41:07 +0200	[thread overview]
Message-ID: <20240408154107.72419-1-cgoettsche@seltendoof.de> (raw)

From: Christian Göttsche <cgzones@googlemail.com>

Bump the maximum Python version to 3.12 and the maximum Ruby version to
3.3 in the GitHub CI.

Also bump the setup-python action to v5.

Since Python 3.12 dropped setuptools, install manually.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 .github/workflows/run_tests.yml | 43 +++++++++++++++++++--------------
 1 file changed, 25 insertions(+), 18 deletions(-)

diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml
index 3bd859a3..f8b6f146 100644
--- a/.github/workflows/run_tests.yml
+++ b/.github/workflows/run_tests.yml
@@ -10,36 +10,39 @@ jobs:
       matrix:
         compiler: [gcc, clang]
         python-ruby-version:
-          - {python: '3.11', ruby: '3.1'}
-          - {python: '3.11', ruby: '3.1', other: 'test-flags-override'}
-          - {python: '3.11', ruby: '3.1', other: 'test-debug'}
-          - {python: '3.11', ruby: '3.1', other: 'linker-bfd'}
-          - {python: '3.11', ruby: '3.1', other: 'linker-gold'}
+          - {python: '3.12', ruby: '3.3'}
+          - {python: '3.12', ruby: '3.3', other: 'test-flags-override'}
+          - {python: '3.12', ruby: '3.3', other: 'test-debug'}
+          - {python: '3.12', ruby: '3.3', other: 'linker-bfd'}
+          - {python: '3.12', ruby: '3.3', other: 'linker-gold'}
           # Test several Python versions with the latest Ruby version
-          - {python: '3.10', ruby: '3.1'}
-          - {python: '3.9', ruby: '3.1'}
-          - {python: '3.8', ruby: '3.1'}
-          - {python: '3.7', ruby: '3.1'}
-          - {python: 'pypy3.7', ruby: '3.1'}
+          - {python: '3.11', ruby: '3.3'}
+          - {python: '3.10', ruby: '3.3'}
+          - {python: '3.9', ruby: '3.3'}
+          - {python: '3.8', ruby: '3.3'}
+          - {python: '3.7', ruby: '3.3'}
+          - {python: 'pypy3.7', ruby: '3.3'}
           # Test several Ruby versions with the latest Python version
-          - {python: '3.11', ruby: '3.0'}
-          - {python: '3.11', ruby: '2.7'}
-          - {python: '3.11', ruby: '2.6'}
-          - {python: '3.11', ruby: '2.5'}
+          - {python: '3.12', ruby: '3.2'}
+          - {python: '3.12', ruby: '3.1'}
+          - {python: '3.12', ruby: '3.0'}
+          - {python: '3.12', ruby: '2.7'}
+          - {python: '3.12', ruby: '2.6'}
+          - {python: '3.12', ruby: '2.5'}
         exclude:
           - compiler: clang
-            python-ruby-version: {python: '3.11', ruby: '3.1', other: 'linker-bfd'}
+            python-ruby-version: {python: '3.12', ruby: '3.3', other: 'linker-bfd'}
           - compiler: clang
-            python-ruby-version: {python: '3.11', ruby: '3.1', other: 'linker-gold'}
+            python-ruby-version: {python: '3.12', ruby: '3.3', other: 'linker-gold'}
         include:
           - compiler: gcc
-            python-ruby-version: {python: '3.11', ruby: '3.1', other: 'sanitizers'}
+            python-ruby-version: {python: '3.12', ruby: '3.3', other: 'sanitizers'}
 
     steps:
     - uses: actions/checkout@v4
 
     - name: Set up Python ${{ matrix.python-ruby-version.python }}
-      uses: actions/setup-python@v4
+      uses: actions/setup-python@v5
       with:
         python-version: ${{ matrix.python-ruby-version.python }}
 
@@ -69,6 +72,10 @@ jobs:
 
         pip install flake8
 
+    - name: Install Python setuptools
+      if: matrix.python-ruby-version.python == '3.12'
+      run: pip install setuptools
+
     - name: Install Clang
       if: ${{ matrix.compiler == 'clang' }}
       run: sudo apt-get install -qqy clang
-- 
2.43.0


             reply	other threads:[~2024-04-08 15:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-08 15:41 Christian Göttsche [this message]
2024-04-24 20:10 ` [PATCH] github: bump Python and Ruby versions James Carter
2024-05-02 18:05   ` James Carter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240408154107.72419-1-cgoettsche@seltendoof.de \
    --to=cgoettsche@seltendoof.de \
    --cc=cgzones@googlemail.com \
    --cc=selinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).