Skip to content

Commit 5b24faf

Browse files
committed
fix the issue with rouge-score
Signed-off-by: Peter Jausovec <[email protected]>
1 parent e9d3653 commit 5b24faf

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ jobs:
2020
enable-cache: true
2121

2222
- name: Install dependencies
23-
run: uv sync --dev
23+
run: |
24+
uv venv
25+
uv pip install setuptools
26+
uv sync --dev
2427
2528
- name: Ruff check
2629
run: uv run ruff check .
@@ -44,7 +47,10 @@ jobs:
4447
run: uv python install ${{ matrix.python-version }}
4548

4649
- name: Install dependencies
47-
run: uv sync --dev --python ${{ matrix.python-version }}
50+
run: |
51+
uv venv --python ${{ matrix.python-version }}
52+
uv pip install setuptools
53+
uv sync --dev --python ${{ matrix.python-version }}
4854
4955
- name: Run tests
5056
run: uv run pytest -m "not integration and not e2e" --tb=short -q

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ packages = ["src/agentevals"]
4343
[tool.uv]
4444
no-build-isolation-package = ["rouge_score"]
4545

46+
[tool.uv.extra-build-dependencies]
47+
rouge-score = ["setuptools"]
48+
4649
[tool.uv.workspace]
4750
members = ["packages/evaluator-sdk-py"]
4851

0 commit comments

Comments
 (0)