From 663439dfa52c94f55bcc9d25796c26123d484577 Mon Sep 17 00:00:00 2001 From: Alex Couper Date: Fri, 9 Aug 2024 13:51:51 +0000 Subject: [PATCH] Include tests for pydantic 2.8 and 2.7 --- .github/workflows/test.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a33b6a68a..af1ba6a8d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,7 +51,7 @@ jobs: - "3.10" - "3.9" - "3.8" - pydantic-version: ["pydantic-v1", "pydantic-v2"] + pydantic-version: ["pydantic-v1", "pydantic-v2.7", "pydantic-v2.8+"] fail-fast: false steps: - name: Dump GitHub context @@ -78,8 +78,11 @@ jobs: if: matrix.pydantic-version == 'pydantic-v1' run: pip install "pydantic>=1.10.0,<2.0.0" - name: Install Pydantic v2 - if: matrix.pydantic-version == 'pydantic-v2' - run: pip install "pydantic>=2.0.2,<3.0.0" + if: matrix.pydantic-version == 'pydantic-v2.7' + 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 - name: Test run: bash scripts/test.sh