Skip to content

Commit

Permalink
ci: test matrix includes pydantic v1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
machow committed Oct 13, 2023
1 parent ac6482f commit 6349aab
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6349aab

Please sign in to comment.