Skip to content

Commit 89487ed

Browse files
committed
Specify the Python versions that GH workflows will test with
Signed-off-by: Martin Hickey <[email protected]>
1 parent 0361ec5 commit 89487ed

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tox.ini

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = fmt, lint, unit
2+
envlist = py3-{fmt, lint, unit}
33
minversion = 4.4
44

55
[testenv]
@@ -16,10 +16,10 @@ commands =
1616
[testenv:py3]
1717
basepython = python3.11
1818

19-
[testenv:unit]
19+
[testenv:py3-unit]
2020
basepython = {[testenv:py3]basepython}
2121

22-
[testenv:lint]
22+
[testenv:py3-lint]
2323
basepython = {[testenv:py3]basepython}
2424
description = lint with pylint
2525
deps =
@@ -29,7 +29,7 @@ deps =
2929
commands =
3030
{basepython} -m pylint --load-plugins pylint_pydantic fms_mo/ tests/
3131

32-
[testenv:fmt]
32+
[testenv:py3-fmt]
3333
basepython = {[testenv:py3]basepython}
3434
description = format with pre-commit
3535
deps =
@@ -51,3 +51,9 @@ commands =
5151
coverage report -m
5252
coverage xml
5353
genbadge coverage -s -i coverage.xml
54+
55+
[gh]
56+
python =
57+
3.11 = py311-{unit}
58+
3.10 = py310-{unit}
59+
3.9 = py39-{unit}

0 commit comments

Comments
 (0)