From 5dc3102606ef5b79547f578728369e00b6204337 Mon Sep 17 00:00:00 2001 From: Tomer Nosrati Date: Wed, 25 Sep 2024 19:12:18 +0300 Subject: [PATCH] Added test-integration.txt for integration tests --- .github/workflows/python-package.yml | 6 +++--- .gitignore | 2 +- requirements/test-integration.txt | 1 + requirements/test.txt | 1 - tox.ini | 1 + 5 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 requirements/test-integration.txt diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 6c27e7acc..0fe89337a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -55,8 +55,9 @@ jobs: Run tox for "${{ matrix.python-version }}-unit" timeout-minutes: 5 - run: | - tox --verbose --verbose + run: > + tox --verbose --verbose -e + "${{ matrix.python-version }}-unit" -vv - uses: codecov/codecov-action@v4 with: @@ -107,4 +108,3 @@ jobs: run: > tox --verbose --verbose -e "${{ matrix.python-version }}-linux-integration-${{ matrix.toxenv }}" -vv - \ No newline at end of file diff --git a/.gitignore b/.gitignore index c9ebfb278..e03003a6b 100644 --- a/.gitignore +++ b/.gitignore @@ -38,4 +38,4 @@ env .python-version .coverage.* control/ -.env \ No newline at end of file +.env diff --git a/requirements/test-integration.txt b/requirements/test-integration.txt new file mode 100644 index 000000000..91a4551cd --- /dev/null +++ b/requirements/test-integration.txt @@ -0,0 +1 @@ +pytest-xdist==3.6.1 \ No newline at end of file diff --git a/requirements/test.txt b/requirements/test.txt index b5e91089f..ae16a03cd 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -3,6 +3,5 @@ Pyro4==4.82 pytest-freezer==0.4.8 pytest-sugar==1.0.0 pytest==8.3.3 -pytest-xdist==3.6.1 pre-commit>=3.5.0,<3.6.0; python_version < '3.9' pre-commit>=3.8.0; python_version >= '3.9' \ No newline at end of file diff --git a/tox.ini b/tox.ini index c29d044e1..866ad36ce 100644 --- a/tox.ini +++ b/tox.ini @@ -35,6 +35,7 @@ deps= apicheck,3.8-linux,3.9-linux,3.10-linux,3.11-linux,3.12-linux: -r{toxinidir}/requirements/extras/confluentkafka.txt apicheck,linkcheck: -r{toxinidir}/requirements/docs.txt flake8,pydocstyle,mypy: -r{toxinidir}/requirements/pkgutils.txt + integration: -r{toxinidir}/requirements/test-integration.txt commands = unit: python -bb -m pytest -rxs -xv --cov=kombu --cov-report=xml --no-cov-on-fail --cov-report term {posargs}