mirror of
https://github.com/frappe/frappe.git
synced 2024-06-03 04:00:47 +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 }}
|
DB: ${{ matrix.db }}
|
||||||
|
|
||||||
- name: Run Tests
|
- 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:
|
env:
|
||||||
SITE: test_site
|
SITE: test_site
|
||||||
CI_BUILD_ID: ${{ github.run_id }}
|
CI_BUILD_ID: ${{ github.run_id }}
|
||||||
BUILD_NUMBER: ${{ matrix.container }}
|
BUILD_NUMBER: ${{ matrix.container }}
|
||||||
TOTAL_BUILDS: 2
|
TOTAL_BUILDS: 2
|
||||||
|
COVERAGE_RCFILE: /home/runner/frappe-bench/apps/frappe/.coveragerc
|
||||||
|
|
||||||
- name: Show bench output
|
- name: Show bench output
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user