Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[PyOV] Automatic stub update - split the job into two (#31289)

Przemyslaw Wysockid84a44a4133b
diff --git a/.github/workflows/update_pyapi_stubs.yml b/.github/workflows/update_pyapi_stubs.yml
index cc09ad20b4a..be63c901f3f 100644
--- a/.github/workflows/update_pyapi_stubs.yml
+++ b/.github/workflows/update_pyapi_stubs.yml
@@ -10,12 +10,9 @@ on:
workflow_dispatch: # Allow manual triggering
jobs:
- update-stubs:
+ openvino-provider-job:
runs-on: aks-linux-medium
timeout-minutes: 10
- defaults:
- run:
- shell: bash
container:
image: 'openvinogithubactions.azurecr.io/openvino_provider:0.1.0'
volumes:
@@ -27,12 +24,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Set up Python
- uses: actions/setup-python@0ae58361cdfd39e2950bed97a1e26aa20c3d8955 # v4
- with:
- python-version: '3.10'
-
- name: Get latest OpenVINO artifacts
id: openvino_download
uses: openvinotoolkit/openvino/.github/actions/openvino_provider@master
@@ -40,9 +31,21 @@ jobs:
platform: 'ubuntu22'
revision: latest_available_commit
+ update-stubs:
+ runs-on: ubuntu-latest
+ needs: openvino-provider-job
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+
+ - name: Set up Python
+ uses: actions/setup-python@0ae58361cdfd39e2950bed97a1e26aa20c3d8955 # v4
+ with:
+ python-version: '3.10'
+
- name: Install OpenVINO and stubgen
run: |
- python -m pip install openvino==${{ steps.openvino_download.outputs.ov_version }} ${{ steps.openvino_download.outputs.ov_wheel_source }}
+ python -m pip install openvino==${{ needs.openvino-provider-job.outputs.ov_version }} ${{ needs.openvino-provider-job.outputs.ov_wheel_source }}
STUBGEN_VERSION=$(grep pybind11-stubgen src/bindings/python/requirements_test.txt)
python -m pip install "$STUBGEN_VERSION"