Skip to content

Commit 86d1704

Browse files
committed
Update Code Coverage
1 parent 891a79c commit 86d1704

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.coveragerc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ omit =
55
*/site-packages/*
66
*/__init__.py
77
*/noxfile.py*
8+
"*/src/a2a/grpc/*",
89

910
[report]
1011
exclude_lines =
@@ -15,4 +16,4 @@ exclude_lines =
1516
if TYPE_CHECKING
1617
@abstractmethod
1718
pass
18-
raise ImportError
19+
raise ImportError

.github/workflows/unit-tests.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,8 @@ jobs:
4040
- name: Install dependencies
4141
run: uv sync --dev
4242

43-
- name: Run tests
44-
run: uv run pytest
43+
- name: Run tests and check coverage
44+
run: uv run pytest --cov=a2a --cov-report=xml --cov-fail-under=90
4545

46-
- name: Upload coverage report
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: coverage-report-${{ matrix.python-version }}
50-
path: coverage.xml
51-
if-no-files-found: ignore
46+
- name: Show coverage summary in log
47+
run: uv run coverage report

0 commit comments

Comments
 (0)