Skip to content

Commit 6012c8a

Browse files
committed
ci: Only generate coverage xml for CI runs.
1 parent 45c4d7e commit 6012c8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/pytest-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
4343
RUN_TESTBOT: ${{ matrix.RUN_TESTBOT }}
4444
run: |
45-
pytest
45+
pytest --cov=./ --cov-report xml:coverage.xml
4646
coverage xml -i
4747
- name: Upload Coverage
4848
run: |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ source = [
115115
]
116116

117117
[tool.pytest.ini_options]
118-
addopts = "-l -ra --durations=2 --cov=./ --cov-report xml:coverage.xml --junitxml=TestResults.xml"
118+
addopts = "-l -ra --durations=2 --junitxml=TestResults.xml"
119119
doctest_optionflags = "NORMALIZE_WHITESPACE"
120120
asyncio_mode="auto"
121121
log_cli = "1"

0 commit comments

Comments
 (0)