mirror of
https://github.com/fastapi/sqlmodel.git
synced 2025-12-12 23:46:59 +08:00
⬆️ Add support for Python 3.13 (#1289)
This commit is contained in:
committed by
GitHub
parent
bf376f83ca
commit
b1349dae45
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -32,6 +32,7 @@ jobs:
|
||||
- "3.10"
|
||||
- "3.11"
|
||||
- "3.12"
|
||||
- "3.13"
|
||||
pydantic-version:
|
||||
- pydantic-v1
|
||||
- pydantic-v2
|
||||
@@ -71,7 +72,10 @@ jobs:
|
||||
run: uv pip install --upgrade "pydantic>=1.10.0,<2.0.0"
|
||||
- name: Install Pydantic v2
|
||||
if: matrix.pydantic-version == 'pydantic-v2'
|
||||
run: uv pip install --upgrade "pydantic>=2.0.2,<3.0.0" "typing-extensions==4.6.1"
|
||||
run: uv pip install --upgrade "pydantic>=2.0.2,<3.0.0"
|
||||
- name: Pin typing-extensions for Python 3.7
|
||||
if: matrix.python-version == '3.7'
|
||||
run: uv pip install --upgrade "typing-extensions==4.6.1"
|
||||
- name: Lint
|
||||
# Do not run on Python 3.7 as mypy behaves differently
|
||||
if: matrix.python-version != '3.7' && matrix.pydantic-version == 'pydantic-v2'
|
||||
@@ -97,7 +101,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
python-version: '3.13'
|
||||
- name: Setup uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user