Skip to content

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

[PyOV] Use nightly OV wheels for auto stubs generation (#31380)

Przemyslaw Wysocki9039c13d81f9
diff --git a/.github/workflows/update_pyapi_stubs.yml b/.github/workflows/update_pyapi_stubs.yml
index 6209b6b221b..d860f6473b5 100644
--- a/.github/workflows/update_pyapi_stubs.yml
+++ b/.github/workflows/update_pyapi_stubs.yml
@@ -10,45 +10,12 @@ on:
workflow_dispatch: # Allow manual triggering
jobs:
- openvino-provider-job:
- runs-on: aks-linux-medium
- timeout-minutes: 10
- container:
- image: 'openvinogithubactions.azurecr.io/openvino_provider:0.1.0'
- volumes:
- - /mount:/mount
- - ${{ github.workspace }}:${{ github.workspace }}
- outputs:
- ov_wheel_source: ${{ steps.openvino_download.outputs.ov_wheel_source }}
- ov_version: ${{ steps.openvino_download.outputs.ov_version }}
- steps:
- - name: Checkout repository
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- - name: Get latest OpenVINO artifacts
- id: openvino_download
- uses: openvinotoolkit/openvino/.github/actions/openvino_provider@master
- with:
- platform: 'ubuntu22'
- revision: latest_available_commit
- - name: Upload OpenVINO wheels artifact
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- with:
- name: openvino-stubs-update-wheels
- path: ./wheels
-
update-stubs:
runs-on: ubuntu-latest
- needs: openvino-provider-job
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- - name: Download OpenVINO wheels artifact
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
- with:
- name: openvino-stubs-update-wheels
- path: ./wheels
-
- name: Set up Python
uses: actions/setup-python@0ae58361cdfd39e2950bed97a1e26aa20c3d8955 # v4
with:
@@ -56,7 +23,7 @@ jobs:
- name: Install OpenVINO and stubgen
run: |
- python -m pip install openvino==${{ needs.openvino-provider-job.outputs.ov_version }} ${{ needs.openvino-provider-job.outputs.ov_wheel_source }}
+ python -m pip install --pre -U openvino --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
STUBGEN_VERSION=$(grep pybind11-stubgen src/bindings/python/requirements_test.txt)
python -m pip install "$STUBGEN_VERSION"
@@ -82,7 +49,7 @@ jobs:
sign-commits: true
reviewers: openvinotoolkit/openvino-ie-python-api-maintainers
body: |
- - Updated Python API stub (.pyi) files from the latest available artifacts
+ - Updated Python API stub (.pyi) files from the latest available nightly
Auto-generated by GitHub Actions
branch: update-pyapi-stubs