From 840dc2b9311044b0777c314a7c50848ad3765317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 21 Oct 2021 01:43:04 +0300 Subject: [PATCH] Run tests with -X dev and -bb (#58079) --- .github/workflows/ci.yaml | 2 +- tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fe291e04c3c..9298400276f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -686,7 +686,7 @@ jobs: - name: Run pytest run: | . venv/bin/activate - pytest \ + python3 -X dev -bb -m pytest \ -qq \ --timeout=9 \ --durations=10 \ diff --git a/tox.ini b/tox.ini index 0c58d2356b9..5def410cb3b 100644 --- a/tox.ini +++ b/tox.ini @@ -8,14 +8,14 @@ basepython = {env:PYTHON3_PATH:python3} # pip version duplicated in homeassistant/package_constraints.txt pip_version = pip>=8.0.3,<20.3 commands = - pytest --timeout=9 --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar {posargs} + {envpython} -X dev -bb -m pytest --timeout=9 --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar {posargs} {toxinidir}/script/check_dirty deps = -r{toxinidir}/requirements_test_all.txt [testenv:cov] commands = - pytest --timeout=9 --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar --cov --cov-report= {posargs} + {envpython} -X dev -bb -m pytest --timeout=9 --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar --cov --cov-report= {posargs} {toxinidir}/script/check_dirty deps = -r{toxinidir}/requirements_test_all.txt