feat: Add support for Python 3.13 (#6685)

This commit is contained in:
Christophe Bornet 2025-02-20 19:13:21 +01:00 committed by GitHub
commit 41edba73c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 910 additions and 400 deletions

View file

@ -4,7 +4,7 @@ description: "Checks out code, installs uv, and sets up Python environment"
inputs:
python-version:
description: "Python version to use"
default: "3.12"
default: "3.13"
runs:
using: "composite"

View file

@ -24,7 +24,7 @@ jobs:
fetch-depth: 0
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- run: uv sync --extra dev
- run: uv sync
- name: Run Codeflash Optimizer
working-directory: ./src/backend/base
continue-on-error: true

View file

@ -306,7 +306,7 @@ jobs:
strategy:
matrix:
python-version:
- "3.12"
- "3.13"
steps:
- name: Check out the code at a specific ref
uses: actions/checkout@v4

View file

@ -13,7 +13,7 @@ on:
description: "(Optional) Python versions to test"
required: true
type: string
default: "['3.10', '3.11', '3.12']"
default: "['3.10', '3.11', '3.12', '3.13']"
ref:
description: "(Optional) ref to checkout"
required: false
@ -30,6 +30,7 @@ jobs:
max-parallel: 1 # Currently, we can only run at a time for collection-per-db-constraints
matrix:
python-version:
- "3.13"
- "3.12"
- "3.11"
- "3.10"

View file

@ -19,6 +19,7 @@ jobs:
strategy:
matrix:
python-version:
- "3.13"
- "3.12"
- "3.11"
- "3.10"

View file

@ -8,7 +8,7 @@ on:
env:
POETRY_VERSION: "1.8.3"
PYTHON_VERSION: "3.12"
PYTHON_VERSION: "3.13"
jobs:
create-nightly-tag:
@ -139,7 +139,7 @@ jobs:
needs: create-nightly-tag
uses: ./.github/workflows/python_test.yml
with:
python-versions: '["3.10", "3.11", "3.12"]'
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
# Not making nightly builds dependent on integration test success
# due to inherent flakiness of 3rd party integrations
@ -149,7 +149,7 @@ jobs:
# needs: create-nightly-tag
# uses: ./.github/workflows/integration_tests.yml
# with:
# python-versions: '["3.10", "3.11", "3.12"]'
# python-versions: '["3.10", "3.11", "3.12", "3.13"]'
# ref: ${{ needs.create-nightly-tag.outputs.tag }}
release-nightly-build:

View file

@ -7,7 +7,7 @@ on:
description: "(Optional) Python versions to test"
required: true
type: string
default: "['3.10', '3.11', '3.12']"
default: "['3.10', '3.11', '3.12', '3.13']"
ref:
description: "(Optional) ref to checkout"
required: false
@ -23,7 +23,7 @@ on:
description: "(Optional) Python versions to test"
required: true
type: string
default: "['3.10', '3.11', '3.12']"
default: "['3.10', '3.11', '3.12', '3.13']"
env:
POETRY_VERSION: "1.8.2"
NODE_VERSION: "21"
@ -37,7 +37,7 @@ jobs:
UV_CACHE_DIR: /tmp/.uv-cache
strategy:
matrix:
python-version: ${{ fromJson(inputs.python-versions || '["3.10", "3.11", "3.12"]' ) }}
python-version: ${{ fromJson(inputs.python-versions || '["3.10", "3.11", "3.12", "3.13"]' ) }}
splitCount: [5]
group: [1, 2, 3, 4, 5]
steps:
@ -68,7 +68,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ${{ fromJson(inputs.python-versions || '["3.10", "3.11", "3.12"]' ) }}
python-version: ${{ fromJson(inputs.python-versions || '["3.10", "3.11", "3.12", "3.13"]' ) }}
steps:
- uses: actions/checkout@v4
with:
@ -88,7 +88,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ${{ fromJson(inputs.python-versions || '["3.10", "3.11", "3.12"]') }}
python-version: ${{ fromJson(inputs.python-versions || '["3.10", "3.11", "3.12", "3.13"]') }}
steps:
- name: Check out the code at a specific ref
uses: actions/checkout@v4

View file

@ -47,7 +47,7 @@ jobs:
name: CI
uses: ./.github/workflows/ci.yml
with:
python-versions: "['3.10', '3.11', '3.12']"
python-versions: "['3.10', '3.11', '3.12', '3.13']"
frontend-tests-folder: "tests"
release: true

View file

@ -55,7 +55,7 @@ on:
env:
POETRY_VERSION: "1.8.3"
PYTHON_VERSION: "3.12"
PYTHON_VERSION: "3.13"
jobs:
release-nightly-base:

View file

@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
python-version:
- "3.12"
- "3.13"
steps:
- name: Check out the code at a specific ref
uses: actions/checkout@v4

View file

@ -51,7 +51,7 @@ on:
env:
NODE_VERSION: "21"
PYTHON_VERSION: "3.12"
PYTHON_VERSION: "3.13"
# Define the directory where Playwright browsers will be installed.
# Adjust if your project uses a different path.
PLAYWRIGHT_BROWSERS_PATH: "ms-playwright"