Skip to content

Commit

Permalink
configloader: test with python 3.11 (#1014)
Browse files Browse the repository at this point in the history
This assumes dependencies are the same or close enough as on python 3.9.
  • Loading branch information
jcristau authored May 31, 2024
1 parent 884bb0c commit 8283c71
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion configloader/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ commands =
docker run --rm -v {toxinidir}:/app -v configloader-{envname}-py38-tox:/app/.tox configloader-{envname}-py38-test py38
docker build --build-arg PYTHON_VERSION=3.9.7 -t configloader-{envname}-py39-test -f Dockerfile.test .
docker run --rm -v {toxinidir}:/app -v configloader-{envname}-py39-tox:/app/.tox configloader-{envname}-py39-test py39
docker build --build-arg PYTHON_VERSION=3.11.9 -t configloader-{envname}-py311-test -f Dockerfile.test .
docker run --rm -v {toxinidir}:/app -v configloader-{envname}-py311-tox:/app/.tox configloader-{envname}-py311-test py311

[testenv]
depends = clean
Expand All @@ -20,6 +22,7 @@ setenv =
PYTHONPATH = {toxinidir}/tests
usedevelop = true
deps =
py311: -r {toxinidir}/requirements/test.txt
py39: -r {toxinidir}/requirements/test.txt
py38: -r {toxinidir}/requirements/test.py38.txt
commands =
Expand All @@ -33,7 +36,7 @@ depends =
[testenv:report]
skip_install = true
commands = coverage report -m
depends = py39
depends = py311
parallel_show_output = true

[coverage:run]
Expand Down
2 changes: 1 addition & 1 deletion taskcluster/kinds/tox/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ tasks:
resources:
- bouncerscript
configloader:
python-versions: [38, 39]
python-versions: [38, 39, 311]
resources:
- configloader
githubscript:
Expand Down
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ envlist =
bouncerscript-py39
configloader-py38
configloader-py39
configloader-py311
githubscript-py39
init-py39
# iscript and notarization_poller are python 3.8 only
Expand Down Expand Up @@ -75,6 +76,11 @@ commands =
changedir = {toxinidir}/configloader
commands =
tox -e py39

[testenv:configloader-py311]
changedir = {toxinidir}/configloader
commands =
tox -e py311
- tox -e coveralls

[testenv:init-py39]
Expand Down

0 comments on commit 8283c71

Please sign in to comment.