Skip to content

Commit d6bc507

Browse files
authored
Skip intermediate python wheels on pull request trigger (#37832)
1 parent a0674a9 commit d6bc507

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build_wheels.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ on:
2525
push:
2626
branches: ['master', 'release-*']
2727
tags: 'v*'
28+
paths: ['sdks/python/**', 'model/**', 'release/**']
2829
pull_request:
2930
branches: ['master', 'release-*']
30-
tags: 'v*'
3131
paths: ['sdks/python/**', 'model/**', 'release/**']
3232
workflow_dispatch:
3333

@@ -229,6 +229,15 @@ jobs:
229229
]
230230
# Keep in sync (remove asterisks) with PY_VERSIONS_FULL env var above - if changed, change that as well.
231231
py_version: ["cp310-", "cp311-", "cp312-", "cp313-"]
232+
# The following exclude/include skips intermediate Python versions on GitHub hosted runners for PR run
233+
is_pr:
234+
- ${{ github.event_name == 'pull_request' }}
235+
exclude:
236+
- is_pr: true
237+
include:
238+
- os_python.os: "ubuntu-20.04"
239+
- py_version: "cp310-"
240+
- py_version: "cp313-"
232241
steps:
233242
- name: Download python source distribution from artifacts
234243
uses: actions/download-artifact@v5

0 commit comments

Comments
 (0)