Skip to content

Commit aa5fa07

Browse files
authored
Only enable single version for wheel pr build (#1571)
### What this PR does / why we need it? Only enable single version for wheel pr build to speedup PR triggered CI ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? CI passed Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
1 parent c3c8c93 commit aa5fa07

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release_whl.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
name: build / wheel
1919

2020
on:
21+
schedule:
22+
# Runs at 23:00 UTC (7:00 AM Beijing) every day
23+
- cron: '0 23 * * *'
2124
pull_request:
2225
branches:
2326
- 'main'
@@ -55,7 +58,11 @@ jobs:
5558
strategy:
5659
matrix:
5760
os: [ubuntu-24.04, ubuntu-24.04-arm]
58-
python-version: ['3.9', '3.10', '3.11']
61+
# PR only trigger latest version
62+
python-version: ${{ fromJSON(
63+
(github.event_name == 'pull_request' && '["3.11"]') ||
64+
'["3.9", "3.10", "3.11"]'
65+
) }}
5966
runs-on: ${{ matrix.os }}
6067
steps:
6168
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)