Skip to content

Commit 90e4141

Browse files
committed
Move --cov-report=html to addopts
Non-`--cov` invocation is unaffected; "no reason" not to generate `--cov-report=html` in an untracked directory AFAIS. Signed-off-by: Stavros Ntentos <[email protected]>
1 parent c1547d9 commit 90e4141

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/run-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Test with tox
6161
env:
6262
FORCE_COLOR: 1
63-
PYTEST_CI_ARGS: --cov-report=xml --cov-report=html --junitxml=test_artifacts/test_report.xml --color=yes
63+
PYTEST_CI_ARGS: --cov-report=xml --junitxml=test_artifacts/test_report.xml --color=yes
6464
run: tox ${{ matrix.python-version == '3.6' && '--skip-missing-interpreters=true' || '' }}
6565

6666
- name: Upload coverage reports to Codecov

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module = [
6868
check_untyped_defs = true
6969

7070
[tool.pytest.ini_options]
71-
addopts = "--verbose --cov-config=pyproject.toml"
71+
addopts = "--verbose --cov-config=pyproject.toml --cov-report=html"
7272

7373
[tool.ruff]
7474
# ruff is less lenient than pylint and does not make any exceptions

0 commit comments

Comments
 (0)