From e7beaaae13db93a36e38fdfe7489ec545f4ef253 Mon Sep 17 00:00:00 2001 From: Matthew Fishman Date: Tue, 5 May 2026 23:53:05 -0400 Subject: [PATCH 1/2] Add cancel-in-progress concurrency block to PR-triggered consumer workflows Add a concurrency block to the remaining PR-triggered consumer workflows so a new push to a PR cancels the prior in-flight run for that workflow, matching the behavior already in Tests.yml and Documentation.yml. Touches CheckCompatBounds.yml, CodeQL.yml, FormatCheck.yml, IntegrationTest.yml, and VersionCheck.yml, plus the matching template/.github/workflows/*.yml.template files used by MassApplyPatch. cancel-in-progress is gated on refs/pull/, so cancellation only fires on PR refs and never on main/tag pushes. --- .github/workflows/CheckCompatBounds.yml | 3 +++ .github/workflows/CodeQL.yml | 3 +++ .github/workflows/FormatCheck.yml | 3 +++ .github/workflows/IntegrationTest.yml | 3 +++ .github/workflows/VersionCheck.yml | 3 +++ template/.github/workflows/CheckCompatBounds.yml.template | 3 +++ template/.github/workflows/CodeQL.yml.template | 3 +++ template/.github/workflows/FormatCheck.yml.template | 3 +++ template/.github/workflows/IntegrationTest.yml.template | 3 +++ template/.github/workflows/VersionCheck.yml.template | 3 +++ 10 files changed, 30 insertions(+) diff --git a/.github/workflows/CheckCompatBounds.yml b/.github/workflows/CheckCompatBounds.yml index f5277d6..718a91f 100644 --- a/.github/workflows/CheckCompatBounds.yml +++ b/.github/workflows/CheckCompatBounds.yml @@ -1,6 +1,9 @@ name: "CheckCompatBounds" on: pull_request: ~ +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}" permissions: contents: "read" jobs: diff --git a/.github/workflows/CodeQL.yml b/.github/workflows/CodeQL.yml index d2fcb68..5b70afd 100644 --- a/.github/workflows/CodeQL.yml +++ b/.github/workflows/CodeQL.yml @@ -3,6 +3,9 @@ on: pull_request: branches: - "main" +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}" permissions: contents: "read" security-events: "write" diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index 1783b51..e1a1aaa 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -6,6 +6,9 @@ on: - "synchronize" - "reopened" - "ready_for_review" +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}" permissions: contents: "read" jobs: diff --git a/.github/workflows/IntegrationTest.yml b/.github/workflows/IntegrationTest.yml index 329116b..5eaa109 100644 --- a/.github/workflows/IntegrationTest.yml +++ b/.github/workflows/IntegrationTest.yml @@ -11,6 +11,9 @@ on: - "reopened" - "ready_for_review" - "converted_to_draft" +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}" permissions: actions: "read" contents: "read" diff --git a/.github/workflows/VersionCheck.yml b/.github/workflows/VersionCheck.yml index 7d6d202..437bd6b 100644 --- a/.github/workflows/VersionCheck.yml +++ b/.github/workflows/VersionCheck.yml @@ -1,6 +1,9 @@ name: "VersionCheck" on: pull_request: ~ +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}" permissions: contents: "read" pull-requests: "read" diff --git a/template/.github/workflows/CheckCompatBounds.yml.template b/template/.github/workflows/CheckCompatBounds.yml.template index f5277d6..718a91f 100644 --- a/template/.github/workflows/CheckCompatBounds.yml.template +++ b/template/.github/workflows/CheckCompatBounds.yml.template @@ -1,6 +1,9 @@ name: "CheckCompatBounds" on: pull_request: ~ +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}" permissions: contents: "read" jobs: diff --git a/template/.github/workflows/CodeQL.yml.template b/template/.github/workflows/CodeQL.yml.template index d2fcb68..5b70afd 100644 --- a/template/.github/workflows/CodeQL.yml.template +++ b/template/.github/workflows/CodeQL.yml.template @@ -3,6 +3,9 @@ on: pull_request: branches: - "main" +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}" permissions: contents: "read" security-events: "write" diff --git a/template/.github/workflows/FormatCheck.yml.template b/template/.github/workflows/FormatCheck.yml.template index 1783b51..e1a1aaa 100644 --- a/template/.github/workflows/FormatCheck.yml.template +++ b/template/.github/workflows/FormatCheck.yml.template @@ -6,6 +6,9 @@ on: - "synchronize" - "reopened" - "ready_for_review" +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}" permissions: contents: "read" jobs: diff --git a/template/.github/workflows/IntegrationTest.yml.template b/template/.github/workflows/IntegrationTest.yml.template index daa2235..fbefc81 100644 --- a/template/.github/workflows/IntegrationTest.yml.template +++ b/template/.github/workflows/IntegrationTest.yml.template @@ -11,6 +11,9 @@ on: - "reopened" - "ready_for_review" - "converted_to_draft" +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}" permissions: actions: "read" contents: "read" diff --git a/template/.github/workflows/VersionCheck.yml.template b/template/.github/workflows/VersionCheck.yml.template index 7d6d202..437bd6b 100644 --- a/template/.github/workflows/VersionCheck.yml.template +++ b/template/.github/workflows/VersionCheck.yml.template @@ -1,6 +1,9 @@ name: "VersionCheck" on: pull_request: ~ +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}" permissions: contents: "read" pull-requests: "read" From 1694879d19eb8095b10d0f482beda6eccf37b02b Mon Sep 17 00:00:00 2001 From: Matthew Fishman Date: Wed, 6 May 2026 08:58:37 -0400 Subject: [PATCH 2/2] Bump version from 0.3.60 to 0.3.61 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 103abfd..83d877e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "ITensorPkgSkeleton" uuid = "3d388ab1-018a-49f4-ae50-18094d5f71ea" -version = "0.3.60" +version = "0.3.61" authors = ["ITensor developers and contributors"] [workspace]