Skip to content

Commit 891201b

Browse files
committed
feat: add Codecov coverage upload and CodeRabbit config
1 parent b3190c2 commit 891201b

4 files changed

Lines changed: 119 additions & 1 deletion

File tree

.coderabbit.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2+
language: "en-US"
3+
early_access: false
4+
5+
reviews:
6+
profile: "assertive"
7+
request_changes_workflow: false
8+
high_level_summary: true
9+
poem: false
10+
review_status: true
11+
auto_review:
12+
enabled: true
13+
drafts: false
14+
path_filters:
15+
- "!uv.lock"
16+
- "!**/*.generated.*"
17+
- "!**/*.onnx"
18+
path_instructions:
19+
- path: "qwen3_embed/common/**"
20+
instructions: "Review for ONNX Runtime performance: session options, memory management, batch processing efficiency."
21+
- path: "qwen3_embed/text/**"
22+
instructions: "Review for embedding correctness: pooling strategies, normalization, tokenizer handling."
23+
24+
chat:
25+
auto_reply: true

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ jobs:
2525
- run: uv sync --group dev
2626
- run: uv run ruff check .
2727
- run: uv run ruff format --check .
28-
- run: uv run pytest -m "not integration" --tb=short
28+
- run: uv run pytest -m "not integration" --tb=short --cov=qwen3_embed --cov-report=xml
29+
30+
- name: Upload coverage to Codecov
31+
if: github.event_name == 'push'
32+
uses: codecov/codecov-action@v5
33+
with:
34+
files: coverage.xml
35+
token: ${{ secrets.CODECOV_TOKEN }}
2936

3037
dependency-review:
3138
name: Dependency Review

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Repository = "https://github.com/n24q02m/qwen3-embed"
3535
[dependency-groups]
3636
dev = [
3737
"pytest>=8.0",
38+
"pytest-cov>=7.0.0",
3839
"ruff>=0.11",
3940
"ty>=0.0.17",
4041
]

0 commit comments

Comments
 (0)