diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index ca8dfcf..04fe8f2 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -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 diff --git a/tox.ini b/tox.ini index f37809e..f26d573 100644 --- a/tox.ini +++ b/tox.ini @@ -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