⬆️ Drop support for Python 3.7, require Python 3.8 or above (#1316)

This commit is contained in:
Sofie Van Landeghem
2025-03-16 21:32:07 +01:00
committed by GitHub
parent de78b8c7bc
commit b66ec8eed3
11 changed files with 15 additions and 33 deletions

View File

@@ -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