Skip to content

Commit 00e89dc

Browse files
committed
Configure tests CI
1 parent 01e5cd3 commit 00e89dc

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed

.github/workflows/test.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ dependencies = [
1414
]
1515

1616
[dependency-groups]
17+
dev = [
18+
"coverage>=7.9.2",
19+
]
1720
production = [
1821
"einops>=0.8.1",
1922
"sentence-transformers>=4.0.1",

0 commit comments

Comments
 (0)