From a336f43a8395d31e2670a358fc53f54f17db74be Mon Sep 17 00:00:00 2001 From: Eric Gustin <34000337+EricGustin@users.noreply.github.com> Date: Tue, 1 Jul 2025 13:29:59 -0700 Subject: [PATCH] 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 --- .github/actions/setup-uv-env/action.yml | 19 ++++++++++++++++++- .../workflows/release-on-version-change.yml | 12 +++++++----- toolkits/code_sandbox/pyproject.toml | 2 +- 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/.github/actions/setup-uv-env/action.yml b/.github/actions/setup-uv-env/action.yml index de15824f..8a07bffe 100644 --- a/.github/actions/setup-uv-env/action.yml +++ b/.github/actions/setup-uv-env/action.yml @@ -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 diff --git a/.github/workflows/release-on-version-change.yml b/.github/workflows/release-on-version-change.yml index 08cf34c9..a621761a 100644 --- a/.github/workflows/release-on-version-change.yml +++ b/.github/workflows/release-on-version-change.yml @@ -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: | diff --git a/toolkits/code_sandbox/pyproject.toml b/toolkits/code_sandbox/pyproject.toml index ca59c237..2c2e380d 100644 --- a/toolkits/code_sandbox/pyproject.toml +++ b/toolkits/code_sandbox/pyproject.toml @@ -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 = [