From c9a1ae70a7c89e7a210ff928d4c49b8f7050f0db Mon Sep 17 00:00:00 2001 From: MatteoH2O1999 Date: Wed, 11 Dec 2024 17:31:28 +0100 Subject: [PATCH 1/2] Update ubuntu label to `ubuntu-24.04` --- .github/scripts/create_python_matrix.py | 2 +- .github/workflows/check.yml | 4 ++-- src/constants.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/scripts/create_python_matrix.py b/.github/scripts/create_python_matrix.py index 544fa91..bb54eb9 100644 --- a/.github/scripts/create_python_matrix.py +++ b/.github/scripts/create_python_matrix.py @@ -3,7 +3,7 @@ import os import tempfile -json_dict = {"os": ["ubuntu-22.04", "windows-2022", "macos-14"], "python-version": []} +json_dict = {"os": ["ubuntu-24.04", "windows-2022", "macos-14"], "python-version": []} with tempfile.TemporaryDirectory() as temp_dir: python_repo = git.Repo.clone_from('https://github.com/python/cpython.git', temp_dir) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 56966aa..73eeb66 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -64,7 +64,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-14, windows-2022, ubuntu-22.04] + os: [macos-14, windows-2022, ubuntu-24.04] steps: - name: Download built action uses: actions/download-artifact@v4 @@ -104,7 +104,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-14, windows-2022, ubuntu-22.04] + os: [macos-14, windows-2022, ubuntu-24.04] steps: - name: Download built action uses: actions/download-artifact@v4 diff --git a/src/constants.ts b/src/constants.ts index e70fcaa..43a7a1d 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -16,7 +16,7 @@ const toolName = 'Python'; -const testedLabels = ['ubuntu-22.04', 'windows-2022', 'macos-14']; +const testedLabels = ['ubuntu-24.04', 'windows-2022', 'macos-14']; const minSupportedVersion = '3.7.0-0'; From 43117a426ac98b6144b6503ebaa9c94dd564be13 Mon Sep 17 00:00:00 2001 From: MatteoH2O1999 Date: Wed, 11 Dec 2024 18:53:34 +0100 Subject: [PATCH 2/2] New min version: `3.8` --- .github/scripts/create_python_matrix.py | 2 +- src/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/create_python_matrix.py b/.github/scripts/create_python_matrix.py index bb54eb9..287dc32 100644 --- a/.github/scripts/create_python_matrix.py +++ b/.github/scripts/create_python_matrix.py @@ -17,7 +17,7 @@ splits = short_tag.split('.') major = int(splits[0]) minor = int(splits[1]) - if major == 3 and minor >= 7 and short_tag not in json_dict['python-version']: + if major == 3 and minor >= 8 and short_tag not in json_dict['python-version']: json_dict['python-version'].append(short_tag) with open(os.environ['GITHUB_OUTPUT'], 'a') as fh: diff --git a/src/constants.ts b/src/constants.ts index 43a7a1d..bfc75f5 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -18,7 +18,7 @@ const toolName = 'Python'; const testedLabels = ['ubuntu-24.04', 'windows-2022', 'macos-14']; -const minSupportedVersion = '3.7.0-0'; +const minSupportedVersion = '3.8.0-0'; export {testedLabels, toolName, minSupportedVersion};