From c35776dc0ec174f7defdb0eb657bff2690618e3f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 8 Jan 2021 17:10:04 +0300 Subject: [PATCH] Test(tox): Refactor `tox.ini`: combine environments --- tox.ini | 52 +++------------------------------------------------- 1 file changed, 3 insertions(+), 49 deletions(-) diff --git a/tox.ini b/tox.ini index eda0f9f..9f72657 100644 --- a/tox.ini +++ b/tox.ini @@ -19,58 +19,12 @@ commands = deps = -rdevscripts/requirements/requirements_tests.txt -[general] -commands = - {envpython} -m pytest - -[testenv:py27] -commands = - {[testenv]commands} - {[general]commands} - -[testenv:py34] -commands = - {[testenv]commands} - {[general]commands} - -[testenv:py35] -commands = - {[testenv]commands} - {[general]commands} - -[testenv:py36] +[testenv:{py27,py34,py35,py36,py37,py38,py39,pypy}] commands = {[testenv]commands} - {[general]commands} - -[testenv:py37] -commands = - {[testenv]commands} - {[general]commands} - -[testenv:py38] -commands = - {[testenv]commands} - {[general]commands} - -[testenv:py39] -commands = - {[testenv]commands} - {[general]commands} - -[testenv:pypy] -commands = - {[testenv]commands} - {[general]commands} - -[testenv:py27-flake8] -deps = - flake8 -commands = - {[testenv]commands} - flake8 + {envpython} -m pytest -[testenv:py39-flake8] +[testenv:{py27,py34,py35,py36,py37,py38,py39}-flake8] deps = flake8 commands = -- 2.39.5