Skip to content

Commit c46405b

Browse files
authored
tests: Remove unused pytest plugin (#1377)
* tests: Remove unused pytest plugin * ci: Only generate coverage xml for CI runs.
1 parent fc86e3b commit c46405b

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ mkdocs-minify-plugin = { version = "*", optional = true }
2929
mkdocs-git-committers-plugin-2 = { version = "*", optional = true }
3030
mkdocs-git-revision-date-localized-plugin = { version = "*", optional = true }
3131
pytest = { version = "*", optional = true }
32-
pytest-recording = { version = "*", optional = true }
3332
pytest-asyncio = { version = "*", optional = true }
3433
pytest-cov = { version = "*", optional = true }
3534
python-dotenv = { version = "*", optional = true }
@@ -66,7 +65,6 @@ mkdocs-git-revision-date-localized-plugin = "*"
6665

6766
[tool.poetry.group.tests.dependencies]
6867
pytest = "*"
69-
pytest-recording = "*"
7068
pytest-asyncio = "*"
7169
pytest-cov = "*"
7270
python-dotenv = "*"
@@ -116,7 +114,7 @@ source = [
116114
]
117115

118116
[tool.pytest.ini_options]
119-
addopts = "-l -ra --durations=2 --cov=./ --cov-report xml:coverage.xml --junitxml=TestResults.xml"
117+
addopts = "-l -ra --durations=2 --junitxml=TestResults.xml"
120118
doctest_optionflags = "NORMALIZE_WHITESPACE"
121119
asyncio_mode="auto"
122120
log_cli = "1"

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
]
2727
extras_require["tests"] = [
2828
"pytest",
29-
"pytest-recording",
3029
"pytest-asyncio",
3130
"pytest-cov",
3231
"python-dotenv",

0 commit comments

Comments
 (0)