Skip to content

Commit 1f6ccbc

Browse files
committed
ci: 移除 Codecov 集成
- 移除 CI 工作流中的 Codecov 上传步骤 - 移除 XML 格式的覆盖率报告生成 - 只保留终端显示的覆盖率报告 - 更新相关文档说明
1 parent b3814ff commit 1f6ccbc

3 files changed

Lines changed: 2 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,7 @@ jobs:
3838
3939
- name: Run tests with coverage
4040
run: |
41-
uv run pytest tests/ -v --cov=mcp_documents_reader --cov-report=xml --cov-report=term-missing
42-
43-
- name: Upload coverage to Codecov
44-
uses: codecov/codecov-action@v4
45-
with:
46-
file: ./coverage.xml
47-
flags: unittests
48-
env_vars: OS,PYTHON
49-
name: codecov-umbrella
50-
fail_ci_if_error: false
41+
uv run pytest tests/ -v --cov=mcp_documents_reader --cov-report=term-missing
5142
5243
lint:
5344
name: Code Quality Checks

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ addopts = [
6464
"-v",
6565
"--cov=mcp_documents_reader",
6666
"--cov-report=term-missing",
67-
"--cov-report=xml",
6867
]
6968
asyncio_mode = "auto"
7069

scripts/run_tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def main():
5959
cmd.extend([
6060
"--cov=mcp_documents_reader",
6161
"--cov-report=term-missing",
62-
"--cov-report=xml",
6362
])
6463

6564
if args.html:
@@ -80,7 +79,7 @@ def main():
8079

8180
if not args.no_cov:
8281
print("\n📊 覆盖率报告已生成:")
83-
print(" - XML: coverage.xml")
82+
print(" - Terminal: 已显示")
8483
if args.html:
8584
print(" - HTML: htmlcov/index.html")
8685

0 commit comments

Comments
 (0)