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
This commit is contained in:
Eric Gustin 2025-07-01 13:29:59 -07:00 committed by GitHub
parent 1d9a4f2275
commit a336f43a83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 7 deletions

View file

@ -6,6 +6,14 @@ inputs:
required: false
description: "The python version to use"
default: "3.11"
is-toolkit:
required: false
description: "Whether this is a toolkit package"
default: "false"
working-directory:
required: false
description: "Working directory for the installation (used for toolkits)"
default: "."
runs:
using: "composite"
@ -15,6 +23,15 @@ runs:
with:
python-version: ${{ inputs.python-version }}
- name: Install dependencies
- name: Install toolkit dependencies
if: inputs.is-toolkit == 'true'
working-directory: ${{ inputs.working-directory }}
run: |
echo "Installing toolkit dependencies for ${{ inputs.working-directory }}"
make install
shell: bash
- name: Install libs dependencies
if: inputs.is-toolkit != 'true'
run: uv sync --dev --extra all
shell: bash

View file

@ -63,11 +63,6 @@ jobs:
with:
fetch-depth: 0
- name: Set up the environment
uses: ./.github/actions/setup-uv-env
with:
python-version: "3.10"
- name: Extract package name and version
working-directory: ${{ matrix.package }}
run: |
@ -81,6 +76,13 @@ jobs:
echo "Building $PACKAGE_NAME version $VERSION"
- name: Set up the environment
uses: ./.github/actions/setup-uv-env
with:
python-version: "3.10"
is-toolkit: ${{ startsWith(matrix.package, 'toolkits/') }}
working-directory: ${{ matrix.package }}
- name: Run tests
working-directory: ${{ matrix.package }}
run: |

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "arcade_code_sandbox"
version = "1.0.1"
version = "1.0.2"
description = "Arcade.dev LLM tools for running code in a sandbox"
requires-python = ">=3.10"
dependencies = [