From 064fb975c5a75485cfb1595d9ade7b6d07ed0351 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 3 Sep 2026 12:54:58 +0200 Subject: [PATCH] CI: also run the tests for pull requests The Test workflow only triggered on push, so pull requests never ran it - only the Codespell workflow showed up on a PR. Keeps the push trigger for all branches, so pushing a branch to a fork still runs the tests before a PR is opened. A concurrency group deduplicates the push and pull_request runs for the same branch. Co-Authored-By: Claude Opus 5 --- .github/workflows/test.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 00c9995..fd39665 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,15 @@ name: Test -on: [push] +on: + push: + pull_request: + branches: [main] + +# For a PR branch, the push and the pull_request event trigger the same tests, +# so keep only the most recent run for a branch. +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true env: FORCE_COLOR: 1