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
37 lines
1,012 B
YAML
37 lines
1,012 B
YAML
name: "setup-uv-env"
|
|
description: "Composite action to setup the Python and uv environment."
|
|
|
|
inputs:
|
|
python-version:
|
|
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"
|
|
steps:
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v5
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
|
|
- 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
|