From 1e72ebaf8bb1d69a4abeb7fea9cac09325681805 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Fri, 15 Jan 2021 19:34:44 +0000 Subject: [PATCH] tests: Update test coverage to Python 3.9 The Travis Linux distribution must be upgraded because the Trusty (Ubuntu 14.04) image does not have Python 3.9. Xenial (Ubuntu 16.04) is the earliest version that offers Python 3.9. I have not chosen a later release, in order to aid restoration of Python 2.4 - 2.6 tests. --- .ci/azure-pipelines.yml | 11 +++++++++++ .travis.yml | 8 ++++++-- docs/changelog.rst | 1 + tests/ansible/requirements.txt | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.ci/azure-pipelines.yml b/.ci/azure-pipelines.yml index 397c52f3..5f687be4 100644 --- a/.ci/azure-pipelines.yml +++ b/.ci/azure-pipelines.yml @@ -66,6 +66,12 @@ jobs: DISTRO: debian VER: 2.10.0 + Mito39Debian_27: + python.version: '3.9' + MODE: mitogen + DISTRO: debian + VER: 2.10.0 + #Py26CentOS7: #python.version: '2.7' #MODE: mitogen @@ -117,3 +123,8 @@ jobs: python.version: '3.5' MODE: ansible VER: 2.10.0 + + Ansible_210_39: + python.version: '3.9' + MODE: ansible + VER: 2.10.0 diff --git a/.travis.yml b/.travis.yml index aafb4413..7ee98677 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ sudo: required -dist: trusty +dist: xenial # Ubuntu 16.04 LTS notifications: email: false @@ -17,7 +17,6 @@ cache: - /home/travis/virtualenv install: -- grep -Erl git-lfs\|couchdb /etc/apt | sudo xargs rm -v - pip install -U pip==20.2.1 - .ci/${MODE}_install.py @@ -53,6 +52,9 @@ matrix: - python: "3.6" env: MODE=ansible VER=2.10.0 # 2.10 -> {debian, centos6, centos7} + - python: "3.9" + env: MODE=ansible VER=2.10.0 + # 2.10 -> {debian, centos6, centos7} - python: "2.7" env: MODE=ansible VER=2.10.0 # 2.10 -> {debian, centos6, centos7} @@ -73,6 +75,8 @@ matrix: #env: MODE=mitogen DISTRO=centos6 - python: "3.6" env: MODE=mitogen DISTROS=centos7 VER=2.10.0 + - python: "3.9" + env: MODE=mitogen DISTROS=centos7 VER=2.10.0 # 2.6 -> 2.7 # - python: "2.6" # env: MODE=mitogen DISTROS=centos7 VER=2.10.0 diff --git a/docs/changelog.rst b/docs/changelog.rst index 4cb8d6fe..48fbb083 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -40,6 +40,7 @@ v0.2.10 (unreleased) timeout, when using recent OpenSSH client versions. * :gh:issue:`758` fix initilialisation of callback plugins in test suite, to address a `KeyError` in :method:`ansible.plugins.callback.CallbackBase.v2_runner_on_start` +* :gh:issue:`775` Test with Python 3.9 v0.2.9 (2019-11-02) diff --git a/tests/ansible/requirements.txt b/tests/ansible/requirements.txt index c0386cd8..2c3c87c8 100644 --- a/tests/ansible/requirements.txt +++ b/tests/ansible/requirements.txt @@ -1,4 +1,4 @@ paramiko==2.3.2 # Last 2.6-compat version. hdrhistogram==0.6.1 PyYAML==3.11; python_version < '2.7' -PyYAML==3.13; python_version >= '2.7' +PyYAML==5.3.1; python_version >= '2.7' # Latest release (Jan 2021)