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.

ci: cancel superseded pull request runs in 11 workflows (#5154)

injaneity73a16a01acff
diff --git a/.github/workflows/ci-check-docs-image-refs.yml b/.github/workflows/ci-check-docs-image-refs.yml
index 27f4a3e24d..d00f1732ff 100644
--- a/.github/workflows/ci-check-docs-image-refs.yml
+++ b/.github/workflows/ci-check-docs-image-refs.yml
@@ -28,6 +28,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
jobs:
image-refs:
name: Docs image refs have passing doctor reports
diff --git a/.github/workflows/ci-check-docs-links.yml b/.github/workflows/ci-check-docs-links.yml
index bf646f11ad..5a4061509a 100644
--- a/.github/workflows/ci-check-docs-links.yml
+++ b/.github/workflows/ci-check-docs-links.yml
@@ -38,6 +38,10 @@ env:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
jobs:
check-code-blocks:
name: Check docs code-block dispositions
diff --git a/.github/workflows/ci-check-image-refs.yml b/.github/workflows/ci-check-image-refs.yml
index 6194562fe4..4c099656bf 100644
--- a/.github/workflows/ci-check-image-refs.yml
+++ b/.github/workflows/ci-check-image-refs.yml
@@ -15,6 +15,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
jobs:
image-refs:
name: Image refs come from the catalog
diff --git a/.github/workflows/ci-image-api.yml b/.github/workflows/ci-image-api.yml
index d7bfefaaf6..f316b89531 100644
--- a/.github/workflows/ci-image-api.yml
+++ b/.github/workflows/ci-image-api.yml
@@ -42,6 +42,10 @@ env:
CUA_TELEMETRY: "0"
DO_NOT_TRACK: "1"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
jobs:
validate:
runs-on: ubuntu-latest
diff --git a/.github/workflows/ci-lint-python.yml b/.github/workflows/ci-lint-python.yml
index 8e8b52a093..3e99f281b7 100644
--- a/.github/workflows/ci-lint-python.yml
+++ b/.github/workflows/ci-lint-python.yml
@@ -15,6 +15,10 @@ env:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
jobs:
lint:
name: Python Lint & Format
diff --git a/.github/workflows/ci-py-bench.yml b/.github/workflows/ci-py-bench.yml
index b445e1a6f2..14af74d01c 100644
--- a/.github/workflows/ci-py-bench.yml
+++ b/.github/workflows/ci-py-bench.yml
@@ -12,6 +12,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
jobs:
build:
uses: ./.github/workflows/py-reusable-build.yml
diff --git a/.github/workflows/ci-spdx-headers.yml b/.github/workflows/ci-spdx-headers.yml
index 889ebf8ef1..98f637e23f 100644
--- a/.github/workflows/ci-spdx-headers.yml
+++ b/.github/workflows/ci-spdx-headers.yml
@@ -38,6 +38,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
jobs:
fsl:
name: Check FSL SPDX headers
diff --git a/.github/workflows/ci-test-python.yml b/.github/workflows/ci-test-python.yml
index 9f27d88533..35fcf8554e 100644
--- a/.github/workflows/ci-test-python.yml
+++ b/.github/workflows/ci-test-python.yml
@@ -22,6 +22,10 @@ env:
CARGO_HTTP_TIMEOUT: "120"
CARGO_HTTP_MULTIPLEXING: "false"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
jobs:
test:
name: Test ${{ matrix.package }}
@@ -146,7 +150,7 @@ jobs:
name: Test Summary
runs-on: ubuntu-latest
needs: [test, cua-sandbox]
- if: always()
+ if: ${{ !cancelled() }}
steps:
- name: Check test results
diff --git a/.github/workflows/clawhub-cua-driver.yml b/.github/workflows/clawhub-cua-driver.yml
index f50a31da02..6a0a31bc26 100644
--- a/.github/workflows/clawhub-cua-driver.yml
+++ b/.github/workflows/clawhub-cua-driver.yml
@@ -39,6 +39,10 @@ env:
CLAWHUB_SKILL_SLUG: "driver"
SKILL_PATH: "libs/cua-driver/rust/Skills/cua-driver"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
jobs:
dry-run:
name: Validate @cua/driver publish bundle
diff --git a/.github/workflows/docs-page-tests.yml b/.github/workflows/docs-page-tests.yml
index b1a83d7ce7..cf0bf3d9cc 100644
--- a/.github/workflows/docs-page-tests.yml
+++ b/.github/workflows/docs-page-tests.yml
@@ -29,6 +29,10 @@ env:
CUA_TELEMETRY: "0"
DO_NOT_TRACK: "1"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
jobs:
page-tests:
name: Docs page tests
diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml
index 70588df2a7..c4344c67a6 100644
--- a/.github/workflows/license-check.yml
+++ b/.github/workflows/license-check.yml
@@ -28,6 +28,10 @@ on:
permissions:
contents: read
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: true
+
jobs:
check:
name: Check dependency licence direction