From 99d2a7758c2ac16a619aa6e755475f51ea8db02c Mon Sep 17 00:00:00 2001 From: Pavel Karateev Date: Mon, 18 Aug 2025 14:21:40 +0200 Subject: [PATCH] PCQA-654 use `tox-uv` to run helpers tests (cherry picked from commit e18a4f74c2573046fab1ed1f221477433a9e0a72) IJ-MR-172692 GitOrigin-RevId: 4f61c09219306b6a015366227f1593843459e5d9 --- .../test-requirements-310.txt | 15 +++++++ .../test-requirements-311.txt | 15 +++++++ .../test-requirements-312.txt | 15 +++++++ .../test-requirements-313.txt | 15 +++++++ .../test-requirements-314.txt | 15 +++++++ .../test-requirements-38.txt | 18 +++++++++ .../test-requirements-39.txt | 15 +++++++ .../test-requirements-latest.txt | 2 + python/helpers/tox.ini | 39 +++++++++++++++++++ python/teamcity.default.properties | 13 +++++++ 10 files changed, 162 insertions(+) create mode 100644 python/helpers/testResources/test-requirements/test-requirements-310.txt create mode 100644 python/helpers/testResources/test-requirements/test-requirements-311.txt create mode 100644 python/helpers/testResources/test-requirements/test-requirements-312.txt create mode 100644 python/helpers/testResources/test-requirements/test-requirements-313.txt create mode 100644 python/helpers/testResources/test-requirements/test-requirements-314.txt create mode 100644 python/helpers/testResources/test-requirements/test-requirements-38.txt create mode 100644 python/helpers/testResources/test-requirements/test-requirements-39.txt create mode 100644 python/helpers/testResources/test-requirements/test-requirements-latest.txt create mode 100644 python/helpers/tox.ini create mode 100644 python/teamcity.default.properties diff --git a/python/helpers/testResources/test-requirements/test-requirements-310.txt b/python/helpers/testResources/test-requirements/test-requirements-310.txt new file mode 100644 index 000000000000..d09f0824ec2d --- /dev/null +++ b/python/helpers/testResources/test-requirements/test-requirements-310.txt @@ -0,0 +1,15 @@ +# direct +behave==1.3.1 +pytest==8.4.1 + +# transient +colorama==0.4.6 +cucumber-expressions==18.0.1 +cucumber-tag-expressions==6.2.0 +iniconfig==2.1.0 +packaging==25.0 +parse==1.20.2 +parse_type==0.6.6 +pluggy==1.6.0 +Pygments==2.19.2 +six==1.17.0 \ No newline at end of file diff --git a/python/helpers/testResources/test-requirements/test-requirements-311.txt b/python/helpers/testResources/test-requirements/test-requirements-311.txt new file mode 100644 index 000000000000..d09f0824ec2d --- /dev/null +++ b/python/helpers/testResources/test-requirements/test-requirements-311.txt @@ -0,0 +1,15 @@ +# direct +behave==1.3.1 +pytest==8.4.1 + +# transient +colorama==0.4.6 +cucumber-expressions==18.0.1 +cucumber-tag-expressions==6.2.0 +iniconfig==2.1.0 +packaging==25.0 +parse==1.20.2 +parse_type==0.6.6 +pluggy==1.6.0 +Pygments==2.19.2 +six==1.17.0 \ No newline at end of file diff --git a/python/helpers/testResources/test-requirements/test-requirements-312.txt b/python/helpers/testResources/test-requirements/test-requirements-312.txt new file mode 100644 index 000000000000..d09f0824ec2d --- /dev/null +++ b/python/helpers/testResources/test-requirements/test-requirements-312.txt @@ -0,0 +1,15 @@ +# direct +behave==1.3.1 +pytest==8.4.1 + +# transient +colorama==0.4.6 +cucumber-expressions==18.0.1 +cucumber-tag-expressions==6.2.0 +iniconfig==2.1.0 +packaging==25.0 +parse==1.20.2 +parse_type==0.6.6 +pluggy==1.6.0 +Pygments==2.19.2 +six==1.17.0 \ No newline at end of file diff --git a/python/helpers/testResources/test-requirements/test-requirements-313.txt b/python/helpers/testResources/test-requirements/test-requirements-313.txt new file mode 100644 index 000000000000..d09f0824ec2d --- /dev/null +++ b/python/helpers/testResources/test-requirements/test-requirements-313.txt @@ -0,0 +1,15 @@ +# direct +behave==1.3.1 +pytest==8.4.1 + +# transient +colorama==0.4.6 +cucumber-expressions==18.0.1 +cucumber-tag-expressions==6.2.0 +iniconfig==2.1.0 +packaging==25.0 +parse==1.20.2 +parse_type==0.6.6 +pluggy==1.6.0 +Pygments==2.19.2 +six==1.17.0 \ No newline at end of file diff --git a/python/helpers/testResources/test-requirements/test-requirements-314.txt b/python/helpers/testResources/test-requirements/test-requirements-314.txt new file mode 100644 index 000000000000..d09f0824ec2d --- /dev/null +++ b/python/helpers/testResources/test-requirements/test-requirements-314.txt @@ -0,0 +1,15 @@ +# direct +behave==1.3.1 +pytest==8.4.1 + +# transient +colorama==0.4.6 +cucumber-expressions==18.0.1 +cucumber-tag-expressions==6.2.0 +iniconfig==2.1.0 +packaging==25.0 +parse==1.20.2 +parse_type==0.6.6 +pluggy==1.6.0 +Pygments==2.19.2 +six==1.17.0 \ No newline at end of file diff --git a/python/helpers/testResources/test-requirements/test-requirements-38.txt b/python/helpers/testResources/test-requirements/test-requirements-38.txt new file mode 100644 index 000000000000..582dfb83180f --- /dev/null +++ b/python/helpers/testResources/test-requirements/test-requirements-38.txt @@ -0,0 +1,18 @@ +# direct +behave==1.3.1 +pytest==8.3.5 + +# transient +colorama==0.4.6 +cucumber-expressions==18.0.1 +cucumber-tag-expressions==6.2.0 +exceptiongroup==1.3.0 +iniconfig==2.1.0 +packaging==25.0 +parse==1.20.2 +parse_type==0.6.6 +pluggy==1.5.0 +six==1.17.0 +tomli==2.2.1 +typing_extensions==4.13.2 +win-unicode-console==0.5 \ No newline at end of file diff --git a/python/helpers/testResources/test-requirements/test-requirements-39.txt b/python/helpers/testResources/test-requirements/test-requirements-39.txt new file mode 100644 index 000000000000..d09f0824ec2d --- /dev/null +++ b/python/helpers/testResources/test-requirements/test-requirements-39.txt @@ -0,0 +1,15 @@ +# direct +behave==1.3.1 +pytest==8.4.1 + +# transient +colorama==0.4.6 +cucumber-expressions==18.0.1 +cucumber-tag-expressions==6.2.0 +iniconfig==2.1.0 +packaging==25.0 +parse==1.20.2 +parse_type==0.6.6 +pluggy==1.6.0 +Pygments==2.19.2 +six==1.17.0 \ No newline at end of file diff --git a/python/helpers/testResources/test-requirements/test-requirements-latest.txt b/python/helpers/testResources/test-requirements/test-requirements-latest.txt new file mode 100644 index 000000000000..3b01896e3850 --- /dev/null +++ b/python/helpers/testResources/test-requirements/test-requirements-latest.txt @@ -0,0 +1,2 @@ +behave +pytest \ No newline at end of file diff --git a/python/helpers/tox.ini b/python/helpers/tox.ini new file mode 100644 index 000000000000..47dbeb8c98a3 --- /dev/null +++ b/python/helpers/tox.ini @@ -0,0 +1,39 @@ +[tox] +envlist = + py38 + py39 + py310 + py311 + py312 + py313 + py314 + latest + +[testenv] +setenv = PYTHONPATH = {toxinidir}{:}{toxinidir}{/}pycharm +commands = pytest {posargs:tests} + +[testenv:py38] +deps = -rtestResources/test-requirements/test-requirements-38.txt + +[testenv:py39] +deps = -rtestResources/test-requirements/test-requirements-39.txt + +[testenv:py310] +deps = -rtestResources/test-requirements/test-requirements-310.txt + +[testenv:py311] +deps = -rtestResources/test-requirements/test-requirements-311.txt + +[testenv:py312] +deps = -rtestResources/test-requirements/test-requirements-312.txt + +[testenv:py313] +deps = -rtestResources/test-requirements/test-requirements-313.txt + +[testenv:py314] +deps = -rtestResources/test-requirements/test-requirements-314.txt + +[testenv:latest] +basepython = py313 +deps = -rtestResources/test-requirements/test-requirements-latest.txt diff --git a/python/teamcity.default.properties b/python/teamcity.default.properties new file mode 100644 index 000000000000..35c663c5b922 --- /dev/null +++ b/python/teamcity.default.properties @@ -0,0 +1,13 @@ +# CI requirements +system.python.tests.ci.uv=0.8.11 +system.python.tests.ci.tox=4.28.4 +system.python.tests.ci.tox-uv=1.28.0 + +# specific Python versions used by tests +system.python.tests.py314=3.14.0rc2 +system.python.tests.py313=3.13.7 +system.python.tests.py312=3.12.11 +system.python.tests.py311=3.11.13 +system.python.tests.py310=3.10.18 +system.python.tests.py39=3.9.23 +system.python.tests.py38=3.8.20 \ No newline at end of file