Skip to content

Commit 03f96d2

Browse files
authored
update workflows to use UV (#14)
* swap all examples to uv * swap ai/mcp to uv * fix: update workflows to use UV
1 parent 2d3ad4c commit 03f96d2

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/workflows/publish_pypi_thirdweb_ai.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121

22-
- name: Install Poetry
23-
run: pipx install poetry==1.8.5
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@22695119d769bdb6f7032ad67b9bca0ef8c4a174 # v5
2424

25-
- name: Set up Python 3.10
25+
- name: Install Python
2626
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
2727
with:
28-
python-version: '3.10'
29-
cache: 'poetry'
28+
enable-cache: true
29+
cache-dependency-glob: "uv.lock" # Update cache if uv.lock changes
3030

31-
- name: Install dependencies
32-
run: poetry install --only main
31+
- name: Install the project
32+
run: uv sync
3333

3434
- name: Build package
35-
run: poetry build
35+
run: uv build
3636

3737
- name: Publish package
3838
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4

.github/workflows/publish_pypi_thirdweb_mcp.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121

22-
- name: Install Poetry
23-
run: pipx install poetry==1.8.5
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@22695119d769bdb6f7032ad67b9bca0ef8c4a174 # v5
2424

25-
- name: Set up Python 3.10
25+
- name: Install Python
2626
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
2727
with:
28-
python-version: '3.10'
29-
cache: 'poetry'
28+
enable-cache: true
29+
cache-dependency-glob: "uv.lock" # Update cache if uv.lock changes
3030

31-
- name: Install dependencies
32-
run: poetry install --only main
31+
- name: Install the project
32+
run: uv sync
3333

3434
- name: Build package
35-
run: poetry build
35+
run: uv build
3636

3737
- name: Publish package
3838
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4

0 commit comments

Comments
 (0)