Skip to content

Commit 2381f5f

Browse files
committed
try to reuse reusable test
1 parent 1aa1a98 commit 2381f5f

2 files changed

Lines changed: 4 additions & 34 deletions

File tree

.github/workflows/test-embedder.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ jobs:
1212
with:
1313
test_command: pytest -n auto tests/embedder/ tests/callback/
1414
extras: --extra sentence-transformers --extra transformers
15-

.github/workflows/test-scorers.yaml

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,11 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ${{ matrix.os }}
1211
strategy:
1312
fail-fast: false
1413
matrix:
15-
os: [ ubuntu-latest ]
16-
python-version: [ "3.10", "3.11", "3.12" ]
1714
dependency-group: [ "base", "transformers", "peft", "catboost" ]
18-
include:
19-
- os: windows-latest
20-
python-version: "3.10"
21-
dependency-group: "base"
22-
23-
steps:
24-
- name: Checkout code
25-
uses: actions/checkout@v4
26-
27-
- name: Cache Hugging Face
28-
id: cache-hf
29-
uses: actions/cache@v4
30-
with:
31-
path: ~/.cache/huggingface
32-
key: ${{ runner.os }}-hf
33-
34-
- name: Install uv
35-
uses: astral-sh/setup-uv@v6
36-
with:
37-
version: "0.8.8"
38-
39-
- name: Install dependencies for Python ${{ matrix.python-version }}
40-
run: |
41-
uv python pin ${{ matrix.python-version }}
42-
uv sync --group test ${{ matrix.dependency-group != 'base' && format('--extra {0}', matrix.dependency-group) || '' }}
43-
44-
- name: Run scorer tests
45-
run: |
46-
uv run pytest -n auto tests/modules/scoring/
47-
15+
uses: ./.github/workflows/reusable-test.yaml
16+
with:
17+
test_command: pytest -n auto tests/modules/scoring/
18+
extras: ${{ matrix.dependency-group != 'base' && format('--extra {0}', matrix.dependency-group) || '' }}

0 commit comments

Comments
 (0)