diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index d6c82bc754e..8f73d743a5e 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -109,6 +109,7 @@ jobs: - 3.7 - 3.8 - 3.9 + - "3.10" # NOTE: Installing ansible under 3.10-dev is currently not # NOTE: possible because compiling cffi explodes. os: @@ -131,12 +132,18 @@ jobs: os: ubuntu-20.04 python-version: 3.9 devel: true + - tox_env: py310 + os: ubuntu-20.04 + python-version: 3.10 + devel: true + skip_ansible29: true - tox_env: py36 os: macOS-latest python-version: 3.6 - - tox_env: py38 + - tox_env: py310 os: macOS-latest - python-version: 3.8 + python-version: "3.10" + skip_ansible29: true env: TOX_PARALLEL_NO_SPINNER: 1 @@ -194,6 +201,7 @@ jobs: env: TOXENV: ${{ matrix.tox_env }}-core - name: "Test with tox: ${{ matrix.tox_env }}-ansible29" + if: ${{ !matrix.skip_ansible29 }} run: | python3 -m tox env: diff --git a/pytest.ini b/pytest.ini index e0004a74401..2db266d2dd9 100644 --- a/pytest.ini +++ b/pytest.ini @@ -27,6 +27,14 @@ filterwarnings = # Ansible originated ignore:The _yaml extension module is now located at yaml._yaml and its location is subject to change:DeprecationWarning: + # Ansible insides on py310: + ignore:_SixMetaPathImporter:ImportWarning + ignore:_AnsibleCollectionFinder:ImportWarning + ignore:_AnsibleCollectionRootPkgLoader:ImportWarning + ignore:_AnsibleCollectionNSPkgLoader.exec_module:ImportWarning + ignore:_AnsibleCollectionPkgLoader.exec_module:ImportWarning + ignore:_AnsiblePathHookFinder.find_spec:ImportWarning + ignore:The distutils package is deprecated and slated for removal:DeprecationWarning # TODO: delete the following ignores once Ansible that we support gets rid of `imp` # Ref: https://github.com/ansible-community/ansible-lint/pull/734 diff --git a/setup.cfg b/setup.cfg index 5307c9a2739..125d52b5074 100644 --- a/setup.cfg +++ b/setup.cfg @@ -39,6 +39,8 @@ classifiers = Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 Programming Language :: Python :: Implementation Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: Jython diff --git a/tox.ini b/tox.ini index d858940414a..88ee3bc1f96 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,7 @@ minversion = 3.16.1 envlist = lint packaging + py310-{core,devel} py{39,38}-{core,ansible29,devel} py{37,36}-{core,ansible29} isolated_build = true