From 99ffa0cc6b1bb199c27cf42d5ececf3487274e41 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Thu, 22 Jan 2026 19:24:30 +0100 Subject: [PATCH] tests: Exclude docker tests from regular pytest runs - Add tests/docker to norecursedirs in pyproject.toml to prevent docker tests from running during regular test suite (they require docker and the requests library) - Add -p no:cov to docker integration workflow to disable coverage plugin since pytest-cov is not installed in that environment --- .github/workflows/docker-integration.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-integration.yml b/.github/workflows/docker-integration.yml index c63c7bff..2e918780 100644 --- a/.github/workflows/docker-integration.yml +++ b/.github/workflows/docker-integration.yml @@ -42,4 +42,4 @@ jobs: - name: Run uWSGI integration tests run: | - pytest tests/docker/uwsgi/ -v --tb=short + pytest tests/docker/uwsgi/ -v --tb=short -p no:cov diff --git a/pyproject.toml b/pyproject.toml index 7803dc55..3fecbd30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,7 +71,7 @@ main = "gunicorn.app.pasterapp:serve" [tool.pytest.ini_options] # # can override these: python -m pytest --override-ini="addopts=" -norecursedirs = ["examples", "lib", "local", "src"] +norecursedirs = ["examples", "lib", "local", "src", "tests/docker"] testpaths = ["tests/"] addopts = "--assert=plain --cov=gunicorn --cov-report=xml"