Skip to content

Commit 790840e

Browse files
committed
fix: update concurrency settings and refine test matrix for Python versions to reduce CI time
1 parent e305eff commit 790840e

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.github/workflows/pr-check.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- main
88
- release*
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}
12+
cancel-in-progress: true
13+
1014
env:
1115
NODE_VERSION: '22.21.1'
1216

@@ -174,8 +178,15 @@ jobs:
174178
strategy:
175179
fail-fast: false
176180
matrix:
177-
os: [ubuntu-latest, windows-latest, macos-latest]
178-
python-version: ['3.10', '3.12', '3.14']
181+
include:
182+
- os: ubuntu-latest
183+
python-version: '3.10'
184+
- os: ubuntu-latest
185+
python-version: '3.14'
186+
- os: windows-latest
187+
python-version: '3.12'
188+
- os: macos-latest
189+
python-version: '3.12'
179190

180191
steps:
181192
- name: Checkout
@@ -267,8 +278,13 @@ jobs:
267278
strategy:
268279
fail-fast: false
269280
matrix:
270-
os: [ubuntu-latest, windows-latest, macos-latest]
271-
python-version: ['3.10', '3.12', '3.14']
281+
include:
282+
- os: ubuntu-latest
283+
python-version: '3.12'
284+
- os: windows-latest
285+
python-version: '3.12'
286+
- os: macos-latest
287+
python-version: '3.12'
272288

273289
steps:
274290
- name: Checkout
@@ -360,8 +376,9 @@ jobs:
360376
strategy:
361377
fail-fast: false
362378
matrix:
363-
os: [ubuntu-latest, windows-latest, macos-latest]
364-
python-version: ['3.10', '3.12', '3.14']
379+
include:
380+
- os: ubuntu-latest
381+
python-version: '3.12'
365382

366383
steps:
367384
- name: Checkout

0 commit comments

Comments
 (0)