Skip to content

Commit

Permalink
Test against pydantic v1
Browse files Browse the repository at this point in the history
  • Loading branch information
jolynch committed Jul 17, 2023
1 parent fc76fd3 commit 76bbf85
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
- name: Run Tox (pydantic latest)
run: tox -e py
- name: Run Tox (pydantic v1)
run: tox -e pydanticv1
14 changes: 14 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ commands =
pytest -x -n 8 {posargs}
mypy --ignore-missing-imports --check-untyped-defs --show-error-codes --follow-imports silent service_capacity_modeling tests

[testenv:pydanticv1]
deps =
pydantic<2.0
pytest
pytest-xdist
mypy
pylint
ipdb
isodate
commands =
pytest -x -n 8 {posargs}
mypy --ignore-missing-imports --check-untyped-defs --show-error-codes --follow-imports silent service_capacity_modeling tests


[testenv:dev]
envdir = .tox/dev
basepython=python3.8
Expand Down

0 comments on commit 76bbf85

Please sign in to comment.