mirror of
https://github.com/fastapi/sqlmodel.git
synced 2026-03-13 09:29:54 +08:00
➖ Drop support for Pydantic v1 (#1701)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
349bc7330a
commit
5917b192f2
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -27,27 +27,19 @@ jobs:
|
||||
matrix:
|
||||
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
||||
python-version: [ "3.14" ]
|
||||
pydantic-version:
|
||||
- pydantic-v2
|
||||
include:
|
||||
- os: windows-latest
|
||||
python-version: "3.9"
|
||||
pydantic-version: pydantic-v2
|
||||
- os: ubuntu-latest
|
||||
python-version: "3.10"
|
||||
pydantic-version: pydantic-v1
|
||||
- os: macos-latest
|
||||
python-version: "3.11"
|
||||
pydantic-version: pydantic-v2
|
||||
- os: windows-latest
|
||||
python-version: "3.12"
|
||||
pydantic-version: pydantic-v1
|
||||
- os: ubuntu-latest
|
||||
python-version: "3.13"
|
||||
pydantic-version: pydantic-v1
|
||||
- os: macos-latest
|
||||
python-version: "3.13"
|
||||
pydantic-version: pydantic-v2
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
@@ -72,12 +64,6 @@ jobs:
|
||||
limit-access-to-actor: true
|
||||
- name: Install Dependencies
|
||||
run: uv pip install -r requirements-tests.txt
|
||||
- name: Install Pydantic v1
|
||||
if: matrix.pydantic-version == 'pydantic-v1'
|
||||
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"
|
||||
- run: mkdir coverage
|
||||
- name: Test
|
||||
run: bash scripts/test.sh
|
||||
|
||||
Reference in New Issue
Block a user