OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[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.ymlindex 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 triggeringjobs:- 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-jobsteps:- name: Checkout repositoryuses: 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 Pythonuses: actions/setup-python@0ae58361cdfd39e2950bed97a1e26aa20c3d8955 # v4with:@@ -56,7 +23,7 @@ jobs:- name: Install OpenVINO and stubgenrun: |- 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/nightlySTUBGEN_VERSION=$(grep pybind11-stubgen src/bindings/python/requirements_test.txt)python -m pip install "$STUBGEN_VERSION"@@ -82,7 +49,7 @@ jobs:sign-commits: truereviewers: openvinotoolkit/openvino-ie-python-api-maintainersbody: |- - Updated Python API stub (.pyi) files from the latest available artifacts+ - Updated Python API stub (.pyi) files from the latest available nightlyAuto-generated by GitHub Actionsbranch: update-pyapi-stubs