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.

feat: add pypi/cli option to version bump workflow (#1052)

Francesco Bonaccie053147a8289
diff --git a/.github/workflows/release-bump-version.yml b/.github/workflows/release-bump-version.yml
index d60b4127b0..1e1df959fb 100644
--- a/.github/workflows/release-bump-version.yml
+++ b/.github/workflows/release-bump-version.yml
@@ -11,6 +11,7 @@ on:
- pypi/agent
- pypi/bench
- pypi/bench-ui
+ - pypi/cli
- pypi/computer
- pypi/computer-server
- pypi/core
@@ -61,6 +62,10 @@ jobs:
echo "directory=libs/python/bench-ui" >> $GITHUB_OUTPUT
echo "type=python" >> $GITHUB_OUTPUT
;;
+ "pypi/cli")
+ echo "directory=libs/python/cua-cli" >> $GITHUB_OUTPUT
+ echo "type=python" >> $GITHUB_OUTPUT
+ ;;
"pypi/computer")
echo "directory=libs/python/computer" >> $GITHUB_OUTPUT
echo "type=python" >> $GITHUB_OUTPUT
@@ -290,6 +295,15 @@ jobs:
echo "Bench-ui version: $VERSION"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
+ - name: Capture bumped cli version
+ if: ${{ inputs.service == 'pypi/cli' }}
+ id: cli_version
+ run: |
+ cd libs/python/cua-cli
+ VERSION=$(python -c "import tomllib; from pathlib import Path; data = tomllib.loads(Path('pyproject.toml').read_text()); print(data['project']['version'])")
+ echo "CLI version: $VERSION"
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
+
- name: Capture bumped computer version
if: ${{ inputs.service == 'pypi/computer' || inputs.service == 'pypi/core' }}
id: computer_version