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>
This commit is contained in:
9
.github/workflows/release_whl.yml
vendored
9
.github/workflows/release_whl.yml
vendored
@@ -18,6 +18,9 @@
|
|||||||
name: build / wheel
|
name: build / wheel
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
# Runs at 23:00 UTC (7:00 AM Beijing) every day
|
||||||
|
- cron: '0 23 * * *'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
@@ -55,7 +58,11 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-24.04, ubuntu-24.04-arm]
|
os: [ubuntu-24.04, ubuntu-24.04-arm]
|
||||||
python-version: ['3.9', '3.10', '3.11']
|
# PR only trigger latest version
|
||||||
|
python-version: ${{ fromJSON(
|
||||||
|
(github.event_name == 'pull_request' && '["3.11"]') ||
|
||||||
|
'["3.9", "3.10", "3.11"]'
|
||||||
|
) }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|||||||
Reference in New Issue
Block a user