File tree Expand file tree Collapse file tree 3 files changed +108
-0
lines changed
Expand file tree Collapse file tree 3 files changed +108
-0
lines changed Original file line number Diff line number Diff line change 1+ name : test
2+
3+ on : [push, workflow_dispatch]
4+
5+ jobs :
6+ test :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout code
10+ uses : actions/checkout@v2
11+
12+ - name : Set up Python
13+ uses : actions/setup-python@v4
14+ with :
15+ python-version : ' 3.9'
16+
17+ - name : Setup uv
18+ uses : astral-sh/setup-uv@v5
19+
20+ - name : Install dependencies
21+ run : uv sync --no-group production
22+
23+ - name : Run tests with coverage
24+ run : uv run -m coverage run -m unittest discover tests
25+
26+ - name : Display coverage report
27+ run : uv run -m coverage report
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ dependencies = [
1414]
1515
1616[dependency-groups ]
17+ dev = [
18+ " coverage>=7.9.2" ,
19+ ]
1720production = [
1821 " einops>=0.8.1" ,
1922 " sentence-transformers>=4.0.1" ,
You can’t perform that action at this time.
0 commit comments