Skip to content

Commit

Permalink
feat(tox): test pydantic v1 and v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mharrisb1 committed Aug 21, 2024
1 parent 819dc3b commit 9190074
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
skipdist = true
envlist = lint, static, unit, examples
envlist = lint, static, unit, pydantic{1,2}-examples

[testenv]
allowlist_externals =
Expand All @@ -13,6 +13,11 @@ command =
black src
black tests
black examples
usedevelop = false
deps =
pydantic1: pydantic>=1.0,<2.0
pydantic2: pydantic>=2.0,<3.0
httpx>=0.27.0,<0.28.0

[testenv:static]
commands =
Expand All @@ -24,6 +29,6 @@ commands =
commands =
pytest tests/unit -v {posargs}

[testenv:examples]
[testenv:pydantic{1,2}-examples]
commands =
pytest examples -v {posargs}
pytest examples -v {posargs}

0 comments on commit 9190074

Please sign in to comment.