Skip to content

Commit

Permalink
ci: Add Coveragerc (frappe#22530)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza authored Oct 16, 2023
1 parent d06a580 commit c706040
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[run]
omit =
tests/*
.github/*
commands/*
**/test_*.py

[report]
exclude_lines =
pragma: no cover
if TYPE_CHECKING:

exclude_also =
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
if TYPE_CHECKING:
class .*\bProtocol\):
@(abc\.)?abstractmethod
4 changes: 3 additions & 1 deletion .github/workflows/server-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,14 @@ jobs:
DB: ${{ matrix.db }}

- name: Run Tests
run: cd ~/frappe-bench/sites && ../env/bin/python3 ../apps/frappe/.github/helper/ci.py
run: ../env/bin/python3 ../apps/frappe/.github/helper/ci.py
working-directory: /home/runner/frappe-bench/sites
env:
SITE: test_site
CI_BUILD_ID: ${{ github.run_id }}
BUILD_NUMBER: ${{ matrix.container }}
TOTAL_BUILDS: 2
COVERAGE_RCFILE: /home/runner/frappe-bench/apps/frappe/.coveragerc

- name: Show bench output
if: ${{ always() }}
Expand Down

0 comments on commit c706040

Please sign in to comment.