Skip to content

Commit 00a359a

Browse files
committed
Use uv sync in the CI instead of pip install
1 parent b393c88 commit 00a359a

File tree

4 files changed

+2258
-1316
lines changed

4 files changed

+2258
-1316
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ jobs:
3838
run: |
3939
python -m pip install --upgrade pip
4040
pip install uv
41-
uv venv
42-
uv pip install -e ".[test]"
41+
uv sync --no-group test-gpu --extra test
4342
- name: Create matrix id
4443
id: matrix-id
4544
env:

.github/workflows/tests_api_models.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ jobs:
3737
run: |
3838
python -m pip install --upgrade pip
3939
pip install uv
40-
uv venv
41-
uv pip install -e ".[test]"
40+
uv sync --no-group test-gpu --extra test
4241
4342
- name: Create matrix id
4443
id: matrix-id

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ test = [
9393
"iso3166",
9494
"requests",
9595
]
96-
test-gpu=["outlines[test]", "vllm; sys_platform == 'linux'"]
96+
97+
[dependency-groups]
98+
test-gpu = ["outlines[test]", "vllm; sys_platform == 'linux'"]
9799

98100
[project.urls]
99101
homepage = "https://github.com/dottxt-ai/outlines"

0 commit comments

Comments
 (0)