Skip to content

Commit 8c6c942

Browse files
chore: collect coverage for all test files
1 parent dcf606b commit 8c6c942

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/lint_test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ jobs:
162162
# This is saved to ./.coverage to be used by codecov to link a
163163
# coverage report to github.
164164
- name: Run tests and generate coverage report
165-
run: python -m pytest -n auto --dist loadfile --cov --disable-warnings -q
165+
id: run_tests
166+
run: python -m pytest tests -n auto --dist loadfile --cov --disable-warnings -q
166167

167168
# This step will publish the coverage reports to coveralls.io and
168169
# print a "job" link in the output of the GitHub Action

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ build-backend = "poetry.core.masonry.api"
6565

6666
[tool.coverage.run]
6767
branch = true
68-
source_pkgs = ['modmail', 'tests.modmail']
68+
source_pkgs = ['modmail', 'tests']
6969
omit = ["modmail/plugins/**.*"]
7070

7171
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)