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
This commit is contained in:
Benoit Chesneau 2026-01-22 19:24:30 +01:00
parent ecc471f3b4
commit 99ffa0cc6b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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"