Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .codecov.yml
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Project gets threshold: 2% but patch has no threshold, so a PR whose changed lines land at 69.9% fails the patch status outright. If this status is meant to block merges, add threshold: 2% here for parity with project; if advisory-only at first, fine as-is — just be explicit about which, since require_ci_to_pass: true plus a hard patch target reads as blocking.


Generated by Claude Code

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright(C) 2025-2026 Advanced Micro Devices, Inc. All rights reserved.
# SPDX-License-Identifier: MIT

codecov:
require_ci_to_pass: true

coverage:
status:
project:
default:
target: 60%
threshold: 2%
patch:
default:
target: 70%

ignore:
- "tests/"
- "docs/"
- "scripts/"
- "workshop/"
- "src/gaia/eval/"
- "src/gaia/apps/webui/"
- "setup.py"
12 changes: 11 additions & 1 deletion .github/workflows/test_unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,17 @@ jobs:
echo "=== Running Unit Tests ==="
echo "These are fast tests for core SDK components"
echo ""
pytest tests/unit/ -v --tb=short --cov=src/gaia --cov-report=term-missing
pytest tests/unit/ -v --tb=short \
--cov=src/gaia --cov-report=term-missing --cov-report=xml:coverage.xml

- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v5
with:
files: coverage.xml
flags: unit
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

- name: Run DatabaseMixin integration tests
env:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
],
"dev": [
"pytest",
"pytest-cov",
"pytest-benchmark",
"pytest-mock",
"pytest-asyncio",
Expand Down
Loading