Skip to content

Commit 3ab2baf

Browse files
committed
chore: Update GitHub Actions workflows to use uv
1 parent f54d5cf commit 3ab2baf

2 files changed

Lines changed: 9 additions & 48 deletions

File tree

.github/actions/ci/action.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,14 @@ inputs:
1212
runs:
1313
using: composite
1414
steps:
15-
- name: Set up Python ${{ inputs.python_version }}
16-
uses: actions/setup-python@v5
15+
- name: Set up uv
16+
uses: astral-sh/setup-uv@v5
1717
with:
1818
python-version: ${{ inputs.python_version }}
1919

20-
- name: Install poetry
21-
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
22-
2320
- name: Install Dependencies
2421
shell: bash
25-
working-directory: ${{ inputs.workspace_path }}
26-
run: poetry install
22+
run: uv sync --all-groups
2723

2824
- name: Lint
2925
shell: bash

.github/workflows/ci.yml

Lines changed: 6 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,11 @@ jobs:
4444
steps:
4545
- uses: actions/checkout@v4
4646

47-
- name: Set up Python ${{ matrix.python-version }}
48-
uses: actions/setup-python@v5
47+
- name: Set up uv
48+
uses: astral-sh/setup-uv@v5
4949
with:
5050
python-version: ${{ matrix.python-version }}
5151

52-
- name: Install poetry
53-
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
54-
55-
- name: Install requirements
56-
working-directory: packages/sdk/server-ai
57-
run: poetry install
58-
5952
- name: Run tests
6053
run: make -C packages/sdk/server-ai test
6154

@@ -90,25 +83,11 @@ jobs:
9083
steps:
9184
- uses: actions/checkout@v4
9285

93-
- name: Set up Python ${{ matrix.python-version }}
94-
uses: actions/setup-python@v5
86+
- name: Set up uv
87+
uses: astral-sh/setup-uv@v5
9588
with:
9689
python-version: ${{ matrix.python-version }}
9790

98-
- name: Install poetry
99-
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
100-
101-
- name: Configure poetry for local virtualenvs
102-
run: poetry config virtualenvs.in-project true
103-
104-
- name: Install server-ai dependency first
105-
working-directory: packages/sdk/server-ai
106-
run: poetry install
107-
108-
- name: Install requirements
109-
working-directory: packages/ai-providers/server-ai-langchain
110-
run: poetry install
111-
11291
- name: Run tests
11392
run: make -C packages/ai-providers/server-ai-langchain test
11493

@@ -143,24 +122,10 @@ jobs:
143122
steps:
144123
- uses: actions/checkout@v4
145124

146-
- name: Set up Python ${{ matrix.python-version }}
147-
uses: actions/setup-python@v5
125+
- name: Set up uv
126+
uses: astral-sh/setup-uv@v5
148127
with:
149128
python-version: ${{ matrix.python-version }}
150129

151-
- name: Install poetry
152-
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
153-
154-
- name: Configure poetry for local virtualenvs
155-
run: poetry config virtualenvs.in-project true
156-
157-
- name: Install server-ai dependency first
158-
working-directory: packages/sdk/server-ai
159-
run: poetry install
160-
161-
- name: Install requirements
162-
working-directory: packages/ai-providers/server-ai-openai
163-
run: poetry install
164-
165130
- name: Run tests
166131
run: make -C packages/ai-providers/server-ai-openai test

0 commit comments

Comments
 (0)