feat(ut): add ut coverage check (#170)

This commit is contained in:
XingLiu0923
2025-05-15 23:56:13 +08:00
committed by GitHub
parent a43db94fb6
commit 9cff113862
7 changed files with 181 additions and 4 deletions

View File

@@ -23,7 +23,23 @@ jobs:
uv pip install -e ".[dev]"
uv pip install -e ".[test]"
- name: Run test cases
- name: Run test cases with coverage
run: |
source .venv/bin/activate
TAVILY_API_KEY=mock-key make test
TAVILY_API_KEY=mock-key make coverage
- name: Generate HTML Coverage Report
run: |
source .venv/bin/activate
python -m coverage html -d coverage_html
- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage_html/
- name: Display Coverage Summary
run: |
source .venv/bin/activate
python -m coverage report