diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 770dfba4..8a082da7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,12 @@ jobs: matrix: # Checks based on python versions --- python-version: ['3.9', '3.10'] + requirements: [""] + + include: + - name: "pydantic v1" + requirements: "pydantic<2.0.0" + python-version: "3.10" steps: - uses: actions/checkout@v2 @@ -26,7 +32,13 @@ jobs: - name: Install dev dependencies run: | python -m pip install --upgrade pip - python -m pip install ".[dev]" + + # include requirements if specified + if [ -n "$REQUIREMENTS" ]; then + python -m pip install $REQUIREMENTS '.[dev]' + else + python -m pip install '.[dev]' + fi - name: Run tests run: | pytest