Skip to content

Commit bb48880

Browse files
authored
CI: fix duplicate test runs on pull requests (#13)
Limit push trigger to main branch only. This prevents tests from running twice (once for push, once for pull_request) when pushing to PR branches.
1 parent 55b7434 commit bb48880

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/test-device.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Test on block devices
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
47

58
permissions:
69
contents: read

.github/workflows/test-with-uv.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Test with uv
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
47

58
permissions:
69
contents: read

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Test
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
47

58
permissions:
69
contents: read

0 commit comments

Comments
 (0)