Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
Add periodic hourly GitHub Actions workflow for Linux cloud VM SDK test (#1288)
r33drichardsb4cde1f66438
diff --git a/.github/workflows/periodic-test-linux-cloud-vm.yml b/.github/workflows/periodic-test-linux-cloud-vm.ymlnew file mode 100644index 0000000000..d2b29a8c93--- /dev/null+++ b/.github/workflows/periodic-test-linux-cloud-vm.yml@@ -0,0 +1,51 @@+name: "Periodic: Test Linux Cloud VM"++on:+ schedule:+ - cron: "7/15 * * * *"+ workflow_dispatch:+ pull_request:+ paths:+ - examples/sandboxes/test_linux_cloud_vm.py++jobs:+ test:+ name: Test Linux Cloud VM+ runs-on: ubuntu-latest++ steps:+ - name: Checkout code+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4++ - name: Set up Python+ uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5+ with:+ python-version: "3.12"++ - name: Install dependencies+ run: pip install cua pytest pytest-asyncio++ - name: Run test+ run: python -m pytest examples/sandboxes/test_linux_cloud_vm.py+ env:+ CUA_API_KEY: ${{ secrets.PERIODIC_TEST_CUA_API_KEY }}++ - name: Alert Alertmanager on failure+ if: failure()+ run: |+ curl -s -X POST https://am.cua.ai/api/v2/alerts \+ -H 'Content-Type: application/json' \+ -d '[{+ "labels": {+ "alertname": "PeriodicTestLinuxCloudVMFailed",+ "severity": "critical",+ "service": "cua-sdk",+ "job": "periodic-test-linux-cloud-vm"+ },+ "annotations": {+ "summary": "Periodic Linux Cloud VM test failed",+ "description": "GitHub Actions workflow \"Periodic: Test Linux Cloud VM\" failed. Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",+ "dashboard": "https://github.com/${{ github.repository }}/actions/workflows/periodic-test-linux-cloud-vm.yml"+ },+ "generatorURL": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"+ }]'diff --git a/examples/sandboxes/test_linux_cloud_vm.py b/examples/sandboxes/test_linux_cloud_vm.pyindex 07a5013cd4..5040fd68ac 100644--- a/examples/sandboxes/test_linux_cloud_vm.py+++ b/examples/sandboxes/test_linux_cloud_vm.py@@ -32,7 +32,6 @@ def _has_cua_api_key() -> bool:async def test_linux_cloud_vm():async with Sandbox.ephemeral(Image.linux("ubuntu", "24.04", kind="vm"),- name="example-linux-cloud-vm",) as sb:result = await sb.shell.run("uname -s")assert result.success@@ -45,7 +44,6 @@ async def test_linux_cloud_vm():async def main():async with Sandbox.ephemeral(Image.linux("ubuntu", "24.04", kind="vm"),- name="example-linux-cloud-vm",) as sb:result = await sb.shell.run("uname -s")print(f"uname: {result.stdout.strip()}")