From aa5fa074781a2b1c9d645c8aa9462cdad46b5e6a Mon Sep 17 00:00:00 2001 From: Yikun Jiang Date: Wed, 2 Jul 2025 14:50:34 +0800 Subject: [PATCH] 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 --- .github/workflows/release_whl.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_whl.yml b/.github/workflows/release_whl.yml index f66a015..9e9d124 100644 --- a/.github/workflows/release_whl.yml +++ b/.github/workflows/release_whl.yml @@ -18,6 +18,9 @@ name: build / wheel on: + schedule: + # Runs at 23:00 UTC (7:00 AM Beijing) every day + - cron: '0 23 * * *' pull_request: branches: - 'main' @@ -55,7 +58,11 @@ jobs: strategy: matrix: 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 }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2