From 3c657152abb9897e8db59cdf4286a21799783dcd Mon Sep 17 00:00:00 2001 From: "Andriy Kushnir (Orhideous)" Date: Sat, 17 Feb 2024 21:36:12 +0200 Subject: [PATCH] Test against pydantic 1/2 on CI --- .github/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0d3ad3f..2365d84 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -56,6 +56,7 @@ jobs: strategy: matrix: python-version: ["3.10", "3.11", "3.12"] + pydantic-version: ["1", "2"] fail-fast: false steps: @@ -87,6 +88,9 @@ jobs: - name: Install library run: poetry install --no-interaction + - name: Install specific pydantic version + run: poetry add pydantic@^${{ matrix.pydantic-version }} + - name: Start Mosquitto uses: namoshek/mosquitto-github-action@v1 with: