mirror of
https://github.com/fastapi/sqlmodel.git
synced 2025-12-12 15:39:09 +08:00
⬆️ Drop support for Python 3.7, require Python 3.8 or above (#1316)
This commit is contained in:
committed by
GitHub
parent
de78b8c7bc
commit
b66ec8eed3
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
@@ -36,13 +36,6 @@ jobs:
|
||||
pydantic-version:
|
||||
- pydantic-v1
|
||||
- pydantic-v2
|
||||
include:
|
||||
- os: ubuntu-22.04
|
||||
python-version: "3.7"
|
||||
pydantic-version: pydantic-v1
|
||||
- os: ubuntu-22.04
|
||||
python-version: "3.7"
|
||||
pydantic-version: pydantic-v2
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
@@ -73,12 +66,8 @@ jobs:
|
||||
- name: Install Pydantic v2
|
||||
if: matrix.pydantic-version == 'pydantic-v2'
|
||||
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'
|
||||
if: matrix.pydantic-version == 'pydantic-v2'
|
||||
run: bash scripts/lint.sh
|
||||
- run: mkdir coverage
|
||||
- name: Test
|
||||
|
||||
Reference in New Issue
Block a user