Skip to content

Commit 093afb7

Browse files
committed
Reorder tox.ini to reduce the number of poetry reinstalls
1 parent e5619cf commit 093afb7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tox.ini

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[tox]
22
min_version = 4.0
3-
env_list = format, test_pydantic1, test_pydantic2, type_pydantic1, type_pydantic2, lint, py{3.9,3.10,3.11}
3+
env_list = format, test_pydantic1, type_pydantic1, test_pydantic2, type_pydantic2, lint, py{3.9,3.10,3.11}
44

55
[gh-actions]
66
python =
77
3.9: py39
88
3.10: py310
9-
3.11: py311, type, format, lint
9+
3.11: py311, test_pydantic1, type_pydantic1, test_pydantic2, type_pydantic2, format, lint
1010

1111
[testenv:test_pydantic1]
1212
labels = core
@@ -16,6 +16,13 @@ commands_pre =
1616
poetry add pydantic^1
1717
commands = poetry run pytest -vv tests
1818

19+
[testenv:type_pydantic1]
20+
allowlist_externals = poetry
21+
commands_pre =
22+
poetry install --no-root --all-extras
23+
poetry add pydantic^1
24+
commands = poetry run mypy openapi_pydantic tests
25+
1926
[testenv:test_pydantic2]
2027
labels = core
2128
allowlist_externals = poetry
@@ -24,13 +31,6 @@ commands_pre =
2431
poetry add 'pydantic>=1.8'
2532
commands = poetry run pytest -vv tests
2633

27-
[testenv:type_pydantic1]
28-
allowlist_externals = poetry
29-
commands_pre =
30-
poetry install --no-root --all-extras
31-
poetry add pydantic^1
32-
commands = poetry run mypy openapi_pydantic tests
33-
3434
[testenv:type_pydantic2]
3535
allowlist_externals = poetry
3636
commands_pre =

0 commit comments

Comments
 (0)