Skip to content

Commit 8283c71

Browse files
authored
configloader: test with python 3.11 (#1014)
This assumes dependencies are the same or close enough as on python 3.9.
1 parent 884bb0c commit 8283c71

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

configloader/tox.ini

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ commands =
1212
docker run --rm -v {toxinidir}:/app -v configloader-{envname}-py38-tox:/app/.tox configloader-{envname}-py38-test py38
1313
docker build --build-arg PYTHON_VERSION=3.9.7 -t configloader-{envname}-py39-test -f Dockerfile.test .
1414
docker run --rm -v {toxinidir}:/app -v configloader-{envname}-py39-tox:/app/.tox configloader-{envname}-py39-test py39
15+
docker build --build-arg PYTHON_VERSION=3.11.9 -t configloader-{envname}-py311-test -f Dockerfile.test .
16+
docker run --rm -v {toxinidir}:/app -v configloader-{envname}-py311-tox:/app/.tox configloader-{envname}-py311-test py311
1517

1618
[testenv]
1719
depends = clean
@@ -20,6 +22,7 @@ setenv =
2022
PYTHONPATH = {toxinidir}/tests
2123
usedevelop = true
2224
deps =
25+
py311: -r {toxinidir}/requirements/test.txt
2326
py39: -r {toxinidir}/requirements/test.txt
2427
py38: -r {toxinidir}/requirements/test.py38.txt
2528
commands =
@@ -33,7 +36,7 @@ depends =
3336
[testenv:report]
3437
skip_install = true
3538
commands = coverage report -m
36-
depends = py39
39+
depends = py311
3740
parallel_show_output = true
3841

3942
[coverage:run]

taskcluster/kinds/tox/kind.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ tasks:
6262
resources:
6363
- bouncerscript
6464
configloader:
65-
python-versions: [38, 39]
65+
python-versions: [38, 39, 311]
6666
resources:
6767
- configloader
6868
githubscript:

tox.ini

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ envlist =
77
bouncerscript-py39
88
configloader-py38
99
configloader-py39
10+
configloader-py311
1011
githubscript-py39
1112
init-py39
1213
# iscript and notarization_poller are python 3.8 only
@@ -75,6 +76,11 @@ commands =
7576
changedir = {toxinidir}/configloader
7677
commands =
7778
tox -e py39
79+
80+
[testenv:configloader-py311]
81+
changedir = {toxinidir}/configloader
82+
commands =
83+
tox -e py311
7884
- tox -e coveralls
7985

8086
[testenv:init-py39]

0 commit comments

Comments
 (0)