Skip to content

Commit a336f43

Browse files
authored
Fix release workflow for toolkits (#469)
The workflow didn't work correctly for toolkits. see run logs for more info on how it didn't work correctly: https://github.com/ArcadeAI/arcade-ai/actions/runs/16008156518/job/45159613768 Bumped the code-sandbox toolkit to prove it works. Proof it worked: https://github.com/ArcadeAI/arcade-ai/actions/runs/16009427831/job/45163629931?pr=469
1 parent 1d9a4f2 commit a336f43

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

.github/actions/setup-uv-env/action.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ inputs:
66
required: false
77
description: "The python version to use"
88
default: "3.11"
9+
is-toolkit:
10+
required: false
11+
description: "Whether this is a toolkit package"
12+
default: "false"
13+
working-directory:
14+
required: false
15+
description: "Working directory for the installation (used for toolkits)"
16+
default: "."
917

1018
runs:
1119
using: "composite"
@@ -15,6 +23,15 @@ runs:
1523
with:
1624
python-version: ${{ inputs.python-version }}
1725

18-
- name: Install dependencies
26+
- name: Install toolkit dependencies
27+
if: inputs.is-toolkit == 'true'
28+
working-directory: ${{ inputs.working-directory }}
29+
run: |
30+
echo "Installing toolkit dependencies for ${{ inputs.working-directory }}"
31+
make install
32+
shell: bash
33+
34+
- name: Install libs dependencies
35+
if: inputs.is-toolkit != 'true'
1936
run: uv sync --dev --extra all
2037
shell: bash

.github/workflows/release-on-version-change.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ jobs:
6363
with:
6464
fetch-depth: 0
6565

66-
- name: Set up the environment
67-
uses: ./.github/actions/setup-uv-env
68-
with:
69-
python-version: "3.10"
70-
7166
- name: Extract package name and version
7267
working-directory: ${{ matrix.package }}
7368
run: |
@@ -81,6 +76,13 @@ jobs:
8176
8277
echo "Building $PACKAGE_NAME version $VERSION"
8378
79+
- name: Set up the environment
80+
uses: ./.github/actions/setup-uv-env
81+
with:
82+
python-version: "3.10"
83+
is-toolkit: ${{ startsWith(matrix.package, 'toolkits/') }}
84+
working-directory: ${{ matrix.package }}
85+
8486
- name: Run tests
8587
working-directory: ${{ matrix.package }}
8688
run: |

toolkits/code_sandbox/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "arcade_code_sandbox"
7-
version = "1.0.1"
7+
version = "1.0.2"
88
description = "Arcade.dev LLM tools for running code in a sandbox"
99
requires-python = ">=3.10"
1010
dependencies = [

0 commit comments

Comments
 (0)