Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

consolidated

Claudeb36794a9a864
diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml
index c55acdbccd..e628cf42de 100644
--- a/.github/workflows/bump-version.yml
+++ b/.github/workflows/bump-version.yml
@@ -28,202 +28,40 @@ permissions:
contents: write
jobs:
- bump-agent:
- if: inputs.service == 'cua-agent'
+ bump-version:
runs-on: ubuntu-latest
steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: "3.11"
-
- - name: Install bump2version
- run: pip install bump2version
-
- - name: Configure Git
- run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- - name: Run bump2version
- run: |
- cd libs/python/agent
- bump2version ${{ inputs.bump_type }}
+ - name: Set package directory
+ id: package
+ run: |
+ case "${{ inputs.service }}" in
+ "cua-agent")
+ echo "directory=libs/python/agent" >> $GITHUB_OUTPUT
+ ;;
+ "cua-computer")
+ echo "directory=libs/python/computer" >> $GITHUB_OUTPUT
+ ;;
+ "cua-computer-server")
+ echo "directory=libs/python/computer-server" >> $GITHUB_OUTPUT
+ ;;
+ "cua-core")
+ echo "directory=libs/python/core" >> $GITHUB_OUTPUT
+ ;;
+ "cua-mcp-server")
+ echo "directory=libs/python/mcp-server" >> $GITHUB_OUTPUT
+ ;;
+ "cua-som")
+ echo "directory=libs/python/som" >> $GITHUB_OUTPUT
+ ;;
+ "pylume")
+ echo "directory=libs/python/pylume" >> $GITHUB_OUTPUT
+ ;;
+ *)
+ echo "Unknown service: ${{ inputs.service }}"
+ exit 1
+ ;;
+ esac
- - name: Push changes
- run: |
- git push origin main --follow-tags
-
- bump-computer:
- if: inputs.service == 'cua-computer'
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: "3.11"
-
- - name: Install bump2version
- run: pip install bump2version
-
- - name: Configure Git
- run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- - name: Run bump2version
- run: |
- cd libs/python/computer
- bump2version ${{ inputs.bump_type }}
-
- - name: Push changes
- run: |
- git push origin main --follow-tags
-
- bump-computer-server:
- if: inputs.service == 'cua-computer-server'
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: "3.11"
-
- - name: Install bump2version
- run: pip install bump2version
-
- - name: Configure Git
- run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- - name: Run bump2version
- run: |
- cd libs/python/computer-server
- bump2version ${{ inputs.bump_type }}
-
- - name: Push changes
- run: |
- git push origin main --follow-tags
-
- bump-core:
- if: inputs.service == 'cua-core'
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: "3.11"
-
- - name: Install bump2version
- run: pip install bump2version
-
- - name: Configure Git
- run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- - name: Run bump2version
- run: |
- cd libs/python/core
- bump2version ${{ inputs.bump_type }}
-
- - name: Push changes
- run: |
- git push origin main --follow-tags
-
- bump-mcp-server:
- if: inputs.service == 'cua-mcp-server'
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: "3.11"
-
- - name: Install bump2version
- run: pip install bump2version
-
- - name: Configure Git
- run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- - name: Run bump2version
- run: |
- cd libs/python/mcp-server
- bump2version ${{ inputs.bump_type }}
-
- - name: Push changes
- run: |
- git push origin main --follow-tags
-
- bump-som:
- if: inputs.service == 'cua-som'
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: "3.11"
-
- - name: Install bump2version
- run: pip install bump2version
-
- - name: Configure Git
- run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- - name: Run bump2version
- run: |
- cd libs/python/som
- bump2version ${{ inputs.bump_type }}
-
- - name: Push changes
- run: |
- git push origin main --follow-tags
-
- bump-pylume:
- if: inputs.service == 'pylume'
- runs-on: ubuntu-latest
- steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
@@ -245,7 +83,7 @@ jobs:
- name: Run bump2version
run: |
- cd libs/python/pylume
+ cd ${{ steps.package.outputs.directory }}
bump2version ${{ inputs.bump_type }}
- name: Push changes