File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ coverage :
2+ status :
3+ project :
4+ default :
5+ target : auto # must not drop below current baseline
6+ threshold : 2% # allow up to 2% drop without failing
7+ patch :
8+ default :
9+ target : 70% # new code in a PR must be 70% covered
10+
11+ comment :
12+ layout : " reach,diff,flags"
13+ behavior : default
Original file line number Diff line number Diff line change 1+ name : CodeQL
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+ schedule :
9+ - cron : " 0 6 * * 1" # weekly Monday 06:00 UTC
10+
11+ jobs :
12+ analyze :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ security-events : write
16+ actions : read
17+ contents : read
18+
19+ steps :
20+ - uses : actions/checkout@v4
21+
22+ - uses : github/codeql-action/init@v3
23+ with :
24+ languages : python
25+
26+ - uses : github/codeql-action/analyze@v3
27+ with :
28+ category : " /language:python"
Original file line number Diff line number Diff line change 1414 - name : Install uv
1515 uses : astral-sh/setup-uv@v5
1616
17+ - uses : actions/setup-python@v5
18+ with :
19+ python-version : " 3.13"
20+
1721 - name : Install dependencies
1822 run : uv sync
1923
2024 - name : Run tests
21- run : uv run pytest tests/ -v --tb=short
25+ run : uv run pytest tests/ -v --tb=short --cov --cov-report=xml
26+
27+ - name : Upload coverage to Codecov
28+ uses : codecov/codecov-action@v4
29+ with :
30+ files : ./coverage.xml
31+ fail_ci_if_error : false
Original file line number Diff line number Diff line change @@ -43,9 +43,23 @@ dependencies = [
4343[dependency-groups ]
4444dev = [
4545 " pytest>=9.0.2" ,
46+ " pytest-cov>=6.0.0" ,
4647 " ruff>=0.9.0" ,
4748]
4849
50+ [tool .coverage .run ]
51+ source = [" notebooks" ]
52+ omit = [
53+ " */tests/*" ,
54+ " */.venv/*" ,
55+ " */helpers/v*_dino_embeddings_lancedb.py" ,
56+ " */helpers/v*_openclip_embeddings_lancedb.py" ,
57+ ]
58+
59+ [tool .coverage .report ]
60+ show_missing = true
61+ skip_empty = true
62+
4963[tool .marimo .runtime ]
5064output_max_bytes = 10_000_000
5165
You can’t perform that action at this time.
0 commit comments