From ec7d9fbc17b25dc9d2888ecab3a6c2d440c633ab Mon Sep 17 00:00:00 2001 From: Felix Seifert Date: Wed, 9 Oct 2024 15:09:08 +0200 Subject: [PATCH 1/4] ci: add usage of Python version 3.13 --- .github/workflows/e2e-tests.yml | 7 +++++++ .github/workflows/test-python.yml | 19 ++++++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index a14739de..f3ec63c7 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -64,6 +64,13 @@ jobs: - name: Verify 3.12.4 run: python __tests__/verify-python.py 3.12.4 + - name: Run with setup-python 3.13.0 + uses: ./ + with: + python-version: 3.13.0 + - name: Verify 3.13.0 + run: python __tests__/verify-python.py 3.13.0 + - name: Run with setup-python 3.10 id: cp310 uses: ./ diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index c8aef26c..7ff09e7b 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] - python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3] + python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] exclude: - os: ubuntu-22.04 python: 3.8.10 @@ -59,7 +59,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] - python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3] + python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] exclude: - os: ubuntu-22.04 python: 3.8.10 @@ -100,7 +100,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] - python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3] + python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] exclude: - os: ubuntu-22.04 python: 3.8.10 @@ -139,7 +139,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] - python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, '==3.12.3'] + python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, '==3.12.3', 3.13.0] exclude: - os: ubuntu-22.04 python: 3.8.10 @@ -183,7 +183,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] - python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3] + python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] exclude: - os: ubuntu-22.04 python: 3.8.10 @@ -318,7 +318,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] - python: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Checkout uses: actions/checkout@v4 @@ -342,7 +342,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 - name: Setup Python and check latest @@ -377,12 +377,13 @@ jobs: 3.10 3.11 3.12 + 3.13 check-latest: true - name: Validate version run: | $pythonVersion = (python --version) - if ("$pythonVersion" -NotMatch "3.12"){ - Write-Host "The current version is $pythonVersion; expected version is 3.12" + if ("$pythonVersion" -NotMatch "3.13"){ + Write-Host "The current version is $pythonVersion; expected version is 3.13" exit 1 } $pythonVersion From 04a4441b052831a1068e95409cf19bd639428433 Mon Sep 17 00:00:00 2001 From: Felix Seifert Date: Wed, 9 Oct 2024 16:22:38 +0200 Subject: [PATCH 2/4] ci: remove prerelease version --- .github/workflows/test-python.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 7ff09e7b..b6d35aec 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -282,35 +282,6 @@ jobs: - name: Run simple code run: python -c 'import math; print(math.factorial(5))' - setup-prerelease-version: - name: Setup 3.13 ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [macos-latest, windows-latest, ubuntu-latest] - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: setup-python 3.13 - id: setup-python - uses: ./ - with: - python-version: '3.13' - allow-prereleases: true - - - name: Check python-path - run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}' - shell: bash - - - name: Validate version - run: ${{ startsWith(steps.setup-python.outputs.python-version, '3.13.') }} - shell: bash - - - name: Run simple code - run: python -c 'import math; print(math.factorial(5))' - setup-versions-noenv: name: Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) runs-on: ${{ matrix.os }} From a2531c5a6a6eefff4ccecb9a3dc34a186ebab3ea Mon Sep 17 00:00:00 2001 From: Felix Seifert Date: Wed, 9 Oct 2024 16:23:13 +0200 Subject: [PATCH 3/4] ci: remove dev version --- .github/workflows/test-python.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index b6d35aec..9965a9b4 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -254,34 +254,6 @@ jobs: - name: Run simple code run: python -c 'import math; print(math.factorial(5))' - setup-dev-version: - name: Setup 3.13-dev ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [macos-latest, windows-latest, ubuntu-latest] - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: setup-python 3.13-dev - id: setup-python - uses: ./ - with: - python-version: '3.13-dev' - - - name: Check python-path - run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}' - shell: bash - - - name: Validate version - run: ${{ startsWith(steps.setup-python.outputs.python-version, '3.13.') }} - shell: bash - - - name: Run simple code - run: python -c 'import math; print(math.factorial(5))' - setup-versions-noenv: name: Setup ${{ matrix.python }} ${{ matrix.os }} (noenv) runs-on: ${{ matrix.os }} From c3243b15ff913d6321bb106a57158a05c6300cd7 Mon Sep 17 00:00:00 2001 From: Felix Seifert Date: Wed, 9 Oct 2024 16:24:11 +0200 Subject: [PATCH 4/4] docs: reference latest version in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 864fda70..7adec362 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - run: python my_script.py ```