Browse Source

Include tests for pydantic 2.8 and 2.7

pull/11634/head
Alex Couper 12 months ago
parent
commit
663439dfa5
  1. 9
      .github/workflows/test.yml

9
.github/workflows/test.yml

@ -51,7 +51,7 @@ jobs:
- "3.10" - "3.10"
- "3.9" - "3.9"
- "3.8" - "3.8"
pydantic-version: ["pydantic-v1", "pydantic-v2"] pydantic-version: ["pydantic-v1", "pydantic-v2.7", "pydantic-v2.8+"]
fail-fast: false fail-fast: false
steps: steps:
- name: Dump GitHub context - name: Dump GitHub context
@ -78,8 +78,11 @@ jobs:
if: matrix.pydantic-version == 'pydantic-v1' if: matrix.pydantic-version == 'pydantic-v1'
run: pip install "pydantic>=1.10.0,<2.0.0" run: pip install "pydantic>=1.10.0,<2.0.0"
- name: Install Pydantic v2 - name: Install Pydantic v2
if: matrix.pydantic-version == 'pydantic-v2' if: matrix.pydantic-version == 'pydantic-v2.7'
run: pip install "pydantic>=2.0.2,<3.0.0" run: pip install "pydantic>=2.0.2,<2.8"
- name: Install Pydantic v2.8+
if: matrix.pydantic-version == 'pydantic-v2.8+'
run: pip install "pydantic>=2.8,<3.0"
- run: mkdir coverage - run: mkdir coverage
- name: Test - name: Test
run: bash scripts/test.sh run: bash scripts/test.sh

Loading…
Cancel
Save