mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-22 12:05:12 +01:00
Add coveragerc (#581)
This commit is contained in:
parent
054e01dbb6
commit
5baef3881a
17
.coveragerc
Normal file
17
.coveragerc
Normal file
@ -0,0 +1,17 @@
|
||||
[report]
|
||||
# Regexes for lines to exclude from consideration
|
||||
exclude_lines =
|
||||
# Have to re-enable the standard pragma
|
||||
pragma: no cover
|
||||
|
||||
# Don't complain about missing debug-only code:
|
||||
def __repr__
|
||||
|
||||
# Don't complain if tests don't hit defensive assertion code:
|
||||
raise AssertionError
|
||||
raise NotImplementedError
|
||||
raise exceptions.NotSupportedError
|
||||
|
||||
# TYPE_CHECKING and @overload blocks are never executed during pytest run
|
||||
if TYPE_CHECKING:
|
||||
@overload
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -86,7 +86,7 @@ jobs:
|
||||
- run: mypy aioesphomeapi
|
||||
name: Check typing with mypy
|
||||
if: ${{ matrix.python-version == '3.11' && matrix.extension == 'skip_cython' }}
|
||||
- run: pytest -vv --cov --cov-report=xml --tb=native tests
|
||||
- run: pytest -vv --cov=aioesphomeapi --cov-report=xml --tb=native tests
|
||||
name: Run tests with pytest
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
|
Loading…
Reference in New Issue
Block a user