mirror of
https://github.com/frappe/frappe.git
synced 2024-06-13 03:12:21 +00:00
ci: Add Coveragerc (#22530)
This commit is contained in:
parent
d06a5808cc
commit
c706040c31
23
.coveragerc
Normal file
23
.coveragerc
Normal file
|
@ -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
.github/workflows/server-tests.yml
vendored
4
.github/workflows/server-tests.yml
vendored
|
@ -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() }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user