From 6ef172dccd105ea356abd275fdbcc29a6031b305 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Wed, 28 Oct 2026 18:02:33 -0400 Subject: [PATCH] CI: only test macOS and Windows on Julia 1 on the default branch Co-Authored-By: Claude Opus 5.5 --- .github/workflows/Tests.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 34763dd..8f6d32c 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -9,7 +9,7 @@ on: - 'docs/**' - 'research/**' pull_request: - types: [opened, synchronize, reopened, ready_for_review, converted_to_draft] + types: [opened, synchronize, reopened, ready_for_review, converted_to_draft, closed] workflow_dispatch: concurrency: @@ -25,7 +25,12 @@ jobs: fail-fast: false matrix: version: ["min", "1"] - os: [ubuntu-latest, macos-latest, windows-latest] + # macOS and Windows only run on pushes to the default branch and manual runs... + os: ${{ fromJSON((github.event_name == 'workflow_dispatch' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch)) && '["ubuntu-latest", "macos-latest", "windows-latest"]' || '["ubuntu-latest"]') }} + # ...and only with the latest Julia version + exclude: + - {version: 'min', os: macos-latest} + - {version: 'min', os: windows-latest} uses: "QuantumKitHub/QuantumKitHubActions/.github/workflows/Tests.yml@main" with: julia-version: "${{ matrix.version }}"