Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

cancel tests on new commit

Magnus Mülleraba7e2cbae0b
diff --git a/.github/workflows/cloud_evals.yml b/.github/workflows/cloud_evals.yml
index 8acb4eaec..850a49915 100644
--- a/.github/workflows/cloud_evals.yml
+++ b/.github/workflows/cloud_evals.yml
@@ -1,5 +1,10 @@
name: cloud_evals
+# Cancel in-progress runs when a new commit is pushed to the same branch/PR
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
on:
push:
branches:
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 4c505e52a..ccc8fe801 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -1,5 +1,10 @@
name: docker
+# Cancel in-progress runs when a new commit is pushed to the same branch/PR
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
on:
push:
release:
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 44949625d..0e2a50134 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,4 +1,10 @@
name: lint
+
+# Cancel in-progress runs when a new commit is pushed to the same branch/PR
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
on:
push:
branches:
diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml
index 8b03b19a3..f764dcf11 100644
--- a/.github/workflows/package.yaml
+++ b/.github/workflows/package.yaml
@@ -1,4 +1,10 @@
name: package
+
+# Cancel in-progress runs when a new commit is pushed to the same branch/PR
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
on:
push:
branches:
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index c2f784d05..b1cb93074 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -8,6 +8,11 @@
name: publish
+# Cancel in-progress runs when a new commit is pushed to the same branch/PR
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
on:
release:
types: [published] # publish full release to PyPI when a release is created on Github
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index afd47a9fd..5d6d71d98 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -7,6 +7,11 @@ permissions:
statuses: write # Allow writing statuses on PRs
discussions: write
+# Cancel in-progress runs when a new commit is pushed to the same branch/PR
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
on:
push:
branches: