From ca9dbbfc28e18cef04fd5ae3da286cc9fb97a0c9 Mon Sep 17 00:00:00 2001 From: Jiri Podivin Date: Thu, 8 Apr 2021 11:32:28 +0200 Subject: [PATCH] Zuul runs tests in py36 only Python 3.6 is the oldest version of python supported by the package, and newer, supported, minor versions do not break any substantial functionality by design, while introducing new features. Therefore we do not need to run unit tests for each minor version. As all possible issues affecting versions >3.6 would necessarily be related to features introduced in versions >3.6. Victoria test template was removed from .zuul.yaml. The pep8 test environment was folded into linters in tox.ini. Zuul is now explicitly running tests only in one, oldest supported, python environment, Python 3.6. PEP387: https://www.python.org/dev/peps/pep-0387/ https://docs.python.org/3/whatsnew/3.7.html#porting-to-python-37 https://docs.python.org/3/whatsnew/3.8.html#porting-to-python-3-8 Signed-off-by: Jiri Podivin Change-Id: Iec86be1b44a494c815ffff042b8693d7fc830b74 --- .zuul.yaml | 3 ++- tox.ini | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.zuul.yaml b/.zuul.yaml index 09a77214..febcf0d2 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -18,9 +18,9 @@ - project: templates: - check-requirements - - openstack-python3-victoria-jobs check: jobs: + - openstack-tox-py36 - openstack-tox-linters - openstack-tox-cover - openstack-tox-docs: &tripleo-docs @@ -31,6 +31,7 @@ - validations-libs-functional gate: jobs: + - openstack-tox-py36 - openstack-tox-linters - openstack-tox-docs: *tripleo-docs - validations-libs-functional diff --git a/tox.ini b/tox.ini index b32b8f0c..b2d324e6 100644 --- a/tox.ini +++ b/tox.ini @@ -64,6 +64,7 @@ deps = -r {toxinidir}/requirements.txt -r {toxinidir}/test-requirements.txt commands = + {[testenv:pep8]commands} {[testenv:whitespace]commands} {[testenv:shebangs]commands}