-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into feature/specific-te…
…nsor-descriptor-for-results
- Loading branch information
Showing
716 changed files
with
19,088 additions
and
21,174 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: 'Find and install OpenVINO Python wheels' | ||
description: 'Finds the OpenVINO Python wheels suitable for the "python3" executable and installs them' | ||
inputs: | ||
wheels-dir-path: | ||
description: 'Path to the directory in which wheels are located' | ||
required: true | ||
wheels-to-install: | ||
description: 'List of wheel names to install in the form of "openvino openvino_tokenizers"' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Install OpenVINO Python wheels (Windows) | ||
shell: pwsh | ||
if: runner.os == 'Windows' | ||
run: | | ||
# Get the Python version | ||
$pyVersion = python3 -c "import sys; print(f'{sys.version_info.major}{sys.version_info.minor}')" | ||
foreach ($wheel in $("${{ inputs.wheels-to-install }}" -split ' ')) { | ||
# Search for the python-specific wheel version and install it if exists | ||
$wheelPath = Get-ChildItem -Path ${{ inputs.wheels-dir-path }} -Filter "$wheel-*cp$pyVersion*.whl" | Select-Object -First 1 | ||
if ($wheelPath) { | ||
python3 -m pip install $wheelPath.FullName | ||
} else { | ||
# If the python-specific version does not exist, install by name only | ||
$wheelPathByName = Get-ChildItem -Path ${{ inputs.wheels-dir-path }} -Filter "$wheel-*.whl" | Select-Object -First 1 | ||
python3 -m pip install $wheelPathByName.FullName | ||
} | ||
} | ||
- name: Install OpenVINO Python wheels (Linux and macOS) | ||
shell: bash | ||
if: runner.os != 'Windows' | ||
run: | | ||
py_version=$(python3 -c "import sys; print(f'{sys.version_info.major}{sys.version_info.minor}')") | ||
for wheel in ${{ inputs.wheels-to-install }}; do | ||
echo "Installing the ${wheel} wheel" | ||
# Search for the python-specific wheel version and install it if exists | ||
wheel_path=$(find ${{ inputs.wheels-dir-path }} -name "$wheel-*cp$py_version*.whl") | ||
echo "Wheel path: ${wheel_path}" | ||
if [ -n "${wheel_path}" ]; then | ||
python3 -m pip install $wheel_path | ||
else | ||
# If the python-specific version does not exist, install by name only | ||
python3 -m pip install ${{ inputs.wheels-dir-path }}/$wheel-*.whl | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
on: | ||
merge_group: | ||
|
||
jobs: | ||
merge_group_stub_check: | ||
name: ci/jenkins | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
if: ${{ github.event_name == 'merge_group' }} | ||
steps: | ||
- run: echo "Just a stub check to keep Jenkins running in pre-commits but not in merge queue" |
Oops, something went wrong.