Skip to content

Commit de4a53a

Browse files
committed
👷 Run tests on Pydantic v1
1 parent 9582765 commit de4a53a

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

‎.github/workflows/test.yml‎

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,35 @@ on:
2323

2424
jobs:
2525
test:
26-
runs-on: ubuntu-latest
2726
strategy:
2827
matrix:
29-
python-version:
30-
- "3.8"
31-
- "3.9"
32-
- "3.10"
33-
- "3.11"
34-
- "3.12"
28+
os: [ ubuntu-latest, windows-latest, macos-latest ]
29+
python-version: ["3.14"]
30+
pydantic-version: ["v2"]
31+
include:
32+
- python-version: "3.8"
33+
pydantic-version: "v1"
34+
os: windows-latest
35+
- python-version: "3.9"
36+
pydantic-version: "v2"
37+
os: macos-latest
38+
- python-version: "3.10"
39+
pydantic-version: "v1"
40+
os: ubuntu-latest
41+
- python-version: "3.11"
42+
pydantic-version: "v2"
43+
os: windows-latest
44+
- python-version: "3.12"
45+
pydantic-version: "v1"
46+
os: macos-latest
47+
- python-version: "3.13"
48+
pydantic-version: "v1"
49+
os: ubuntu-latest
50+
- python-version: "3.13"
51+
pydantic-version: "v2"
52+
os: windows-latest
3553
fail-fast: false
54+
runs-on: ${{ matrix.os }}
3655
steps:
3756
- name: Dump GitHub context
3857
env:
@@ -60,6 +79,9 @@ jobs:
6079
- name: Install Dependencies
6180
if: steps.cache.outputs.cache-hit != 'true'
6281
run: pip install -r requirements-tests.txt
82+
- name: Install Pydantic v1
83+
if: matrix.pydantic-version == 'v1'
84+
run: uv pip install "pydantic<2.0.0"
6385
- name: Lint
6486
run: bash scripts/lint.sh
6587
- run: mkdir coverage

0 commit comments

Comments
 (0)