diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 7bbbb1a2e3db..069a435fa749 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -25,9 +25,9 @@ on: push: branches: ['master', 'release-*'] tags: 'v*' + paths: ['sdks/python/**', 'model/**', 'release/**'] pull_request: branches: ['master', 'release-*'] - tags: 'v*' paths: ['sdks/python/**', 'model/**', 'release/**'] workflow_dispatch: @@ -229,6 +229,15 @@ jobs: ] # Keep in sync (remove asterisks) with PY_VERSIONS_FULL env var above - if changed, change that as well. py_version: ["cp310-", "cp311-", "cp312-", "cp313-"] + # The following exclude/include skips intermediate Python versions on GitHub hosted runners for PR run + is_pr: + - ${{ github.event_name == 'pull_request' }} + exclude: + - is_pr: true + include: + - os_python.os: "ubuntu-20.04" + - py_version: "cp310-" + - py_version: "cp313-" steps: - name: Download python source distribution from artifacts uses: actions/download-artifact@v5