@@ -29,14 +29,15 @@ jobs:
2929 runs-on : ubuntu-latest
3030 strategy :
3131 matrix :
32- python-version :
33- - " 3.8"
34- - " 3.9"
35- - " 3.10"
36- - " 3.11"
37- - " 3.12"
38- - " 3.13"
39- - " 3.14"
32+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
33+ pydantic-version : ["v2"]
34+ include :
35+ - python-version : " 3.8"
36+ pydantic-version : " v1"
37+ - python-version : " 3.9"
38+ pydantic-version : " v1"
39+ - python-version : " 3.10"
40+ pydantic-version : " v1"
4041 fail-fast : false
4142 steps :
4243 - name : Dump GitHub context
@@ -63,19 +64,23 @@ jobs:
6364 with :
6465 limit-access-to-actor : true
6566 - name : Install Dependencies
66- run : uv pip install -r requirements-tests.txt
67+ run : |
68+ uv pip install -r requirements-tests.txt
69+ if [ "${{ matrix.pydantic-version }}" = "v1" ]; then
70+ uv pip install "pydantic<2.0.0"
71+ fi
6772 - name : Lint
6873 run : bash scripts/lint.sh
6974 - run : mkdir coverage
7075 - name : Test
7176 run : bash scripts/test.sh
7277 env :
73- COVERAGE_FILE : coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
74- CONTEXT : ${{ runner.os }}-py${{ matrix.python-version }}
78+ COVERAGE_FILE : coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-pydantic-${{ matrix.pydantic-version }}
79+ CONTEXT : ${{ runner.os }}-py${{ matrix.python-version }}-pydantic-${{ matrix.pydantic-version }}
7580 - name : Store coverage files
7681 uses : actions/upload-artifact@v5
7782 with :
78- name : coverage-${{ matrix.python-version }}
83+ name : coverage-${{ matrix.python-version }}-pydantic-${{ matrix.pydantic-version }}
7984 path : coverage
8085 include-hidden-files : true
8186
0 commit comments