Skip to content

Commit 843dc5c

Browse files
authored
CI: only test macOS and Windows on Julia 1 on the default branch (#11)
1 parent 93a0cdc commit 843dc5c

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎.github/workflows/Tests.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
paths-ignore:
1010
- 'docs/**'
1111
pull_request:
12+
types: [opened, synchronize, reopened, closed]
1213
workflow_dispatch:
1314

1415
concurrency:
@@ -25,10 +26,12 @@ jobs:
2526
version:
2627
- 'lts' # minimal supported version
2728
- '1' # latest released Julia version
28-
os:
29-
- ubuntu-latest
30-
- macOS-latest
31-
- windows-latest
29+
# macOS and Windows only run on pushes to the default branch and manual runs...
30+
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"]') }}
31+
# ...and only with the latest Julia version
32+
exclude:
33+
- {version: 'lts', os: macos-latest}
34+
- {version: 'lts', os: windows-latest}
3235
uses: "QuantumKitHub/QuantumKitHubActions/.github/workflows/Tests.yml@main"
3336
with:
3437
group: "${{ matrix.group }}"

0 commit comments

Comments
 (0)