Adjust pytest configuration (#3611)

This commit is contained in:
Joakim Sørensen
2024-04-11 20:33:30 +02:00
committed by GitHub
parent f033383011
commit a742ff4345
3 changed files with 6 additions and 11 deletions

View File

@ -43,8 +43,7 @@ jobs:
- name: 🏃 Run tests
env:
PYTEST: true
run: |
python3 -m pytest
run: scripts/test
dev:
name: With pytest with Home Assistant (${{ matrix.homeassistant-version }}) & Python (${{ matrix.python-version }})
@ -82,8 +81,7 @@ jobs:
- name: 🏃 Run tests
env:
PYTEST: true
run: |
python3 -m pytest
run: scripts/test
- name: 📤 Upload coverage to Codecov
if: ${{ matrix.python-version == '3.12' }}

View File

@ -20,10 +20,12 @@ combine_as_imports = true
[tool.pytest.ini_options]
asyncio_mode="auto"
addopts = "-rf -v -l --cov=./ --cov-report=xml"
addopts = "-rxf -l --cov=./ --cov-report=xml"
filterwarnings = [
"ignore::DeprecationWarning",
]
log_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(name)s:%(filename)s:%(lineno)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
testpaths = [
"tests",
]

View File

@ -4,10 +4,5 @@ set -e
cd "$(dirname "$0")/.."
python3 -m \
pytest \
tests \
-rxf -x -v -l \
--cov=./ \
--cov-report=xml
python3 -m pytest -x tests