Skip to content

Commit

Permalink
Add Python 3.13 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrews committed Jul 1, 2024
1 parent c3e8cdb commit 8bddf0e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
- name: '3.12'
tox_env: integration-py312

- name: '3.13.0-alpha - 3.13.0'
tox_env: integration-py313

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -122,6 +125,9 @@ jobs:
- name: '3.12'
tox_env: unit-py312

- name: '3.13.0-alpha - 3.13.0'
tox_env: unit-py313

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
20 changes: 8 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = linters, ansible{27, 28, 29, -base}
envlist = linters
requires =
tox>4
setuptools>=64
Expand All @@ -9,21 +9,17 @@ pytest_cov_args = --cov --cov-report html --cov-report term --cov-report xml

[testenv]
description = Run tests with {basepython}
deps = ansible27: ansible<2.8
ansible28: ansible<2.9
ansible29: ansible<2.10
ansible-base: ansible-base
py{,3,39,310,311}: ansible-core
integration{,-py39,-py310,-py311,-py312}: ansible-core
build
-r {toxinidir}/test/requirements.txt
deps =
ansible-core
integration{,-py39,-py310,-py311,-py312}: build
-r {toxinidir}/test/requirements.txt
passenv =
HOME
RUNNER_TEST_IMAGE_NAME
usedevelop = True
commands = pytest -vv -n auto {posargs}

[testenv:linters{,-py39,-py310,-py311,-py312}]
[testenv:linters{,-py39,-py310,-py311,-py312,-py313}]
description = Run code linters
commands =
flake8 --version
Expand All @@ -33,11 +29,11 @@ commands =
mypy src/ansible_runner
pylint src/ansible_runner test

[testenv:unit{,-py39,-py310,-py311,-py312}]
[testenv:unit{,-py39,-py310,-py311,-py312,-py313}]
description = Run unit tests
commands = pytest -vv -n auto {posargs:test/unit} {[shared]pytest_cov_args}

[testenv:integration{,-py39,-py310,-py311,-py312}]
[testenv:integration{,-py39,-py310,-py311,-py312,-py313}]
description = Run integration tests
commands = pytest -vv -n auto {posargs:test/integration} {[shared]pytest_cov_args}

Expand Down

0 comments on commit 8bddf0e

Please sign in to comment.