From 9fac7f5aa96d67f931d001cc1ad7a1d90c2333e7 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Jan 2026 19:23:12 +0000 Subject: [PATCH] CI: fix duplicate test runs on pull requests 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. https://claude.ai/code/session_013h4SmDZc9PUGNMprvcQdR7 --- .github/workflows/test-device.yml | 5 ++++- .github/workflows/test-with-uv.yml | 5 ++++- .github/workflows/test.yml | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-device.yml b/.github/workflows/test-device.yml index dcf3eb5..9a52711 100644 --- a/.github/workflows/test-device.yml +++ b/.github/workflows/test-device.yml @@ -1,6 +1,9 @@ name: Test on block devices -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: permissions: contents: read diff --git a/.github/workflows/test-with-uv.yml b/.github/workflows/test-with-uv.yml index 66d32a6..1c22c0d 100644 --- a/.github/workflows/test-with-uv.yml +++ b/.github/workflows/test-with-uv.yml @@ -1,6 +1,9 @@ name: Test with uv -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: permissions: contents: read diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 278f419..c506d94 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,9 @@ name: Test -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: permissions: contents: read