Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ jobs:
contents: write
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
pydantic-version: ['pydantic-v1', 'pydantic-v2']
exclude: # Pydantic v1 is not supported on Python >= 3.14
- python-version: '3.14'
pydantic-version: 'pydantic-v1'
fail-fast: false
steps:
- uses: actions/checkout@v5
Expand All @@ -65,14 +68,18 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install the project
run: uv sync --locked --all-extras --group test
- name: Install Pydantic v1
if: matrix.pydantic-version == 'pydantic-v1'
run: uv add "pydantic>=1.10.0,<2.0.0" --upgrade-package pydantic
- name: Install Pydantic v2
if: matrix.pydantic-version == 'pydantic-v2'
- name: Install Pydantic v2 on Python != 3.14
if: matrix.pydantic-version == 'pydantic-v2' && matrix.python-version != '3.14'
run: uv add "pydantic>=2.0.2,<3.0.0" --upgrade-package pydantic
- name: Install Pydantic v2 on Python == 3.14
if: matrix.pydantic-version == 'pydantic-v2' && matrix.python-version == '3.14'
run: uv add "pydantic>=2.12.0b1" --upgrade-package pydantic
- run: mkdir coverage
- name: Test
run: uv run coverage run -m pytest -vv tests
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [
{ name = "Mike Oakley", email = "[email protected]" },
]
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pydantic v2.12 seems allergic to Python < 3.9.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 3.8 support has been dropped in v2.11.0 with pydantic/pydantic#11258

license = { text = "MIT" }
keywords = ["openapi", "schema", "parser", "pydantic", "validation"]
classifiers = [
Expand Down
Loading