Skip to content

Commit 6d4d083

Browse files
authored
[2025.1] Aligned python version on mac (#1988)
OV provider uses build with python 3.11 now, need to align this versions on mac to be able to use post-commit artifacts
1 parent e5a8bb6 commit 6d4d083

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ jobs:
346346
volumes:
347347
- /mount:/mount
348348
- ${{ github.workspace }}:${{ github.workspace }}
349+
options: -e HF_TOKEN
349350

350351
env:
351352
INSTALL_DIR: ${{ github.workspace }}/install
@@ -414,6 +415,7 @@ jobs:
414415
volumes:
415416
- /mount:/mount
416417
- ${{ github.workspace }}:${{ github.workspace }}
418+
options: -e HF_TOKEN
417419

418420
env:
419421
INSTALL_DIR: ${{ github.workspace }}/ov
@@ -468,6 +470,7 @@ jobs:
468470
volumes:
469471
- /mount:/mount
470472
- ${{ github.workspace }}:${{ github.workspace }}
473+
options: -e HF_TOKEN
471474

472475
env:
473476
OV_INSTALL_DIR: ${{ github.workspace }}/ov

.github/workflows/mac.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: macOS (13, Python 3.10)
1+
name: macOS (13, Python 3.11)
22
on:
33
workflow_dispatch:
44
pull_request:
@@ -17,7 +17,7 @@ concurrency:
1717

1818
env:
1919
MACOSX_DEPLOYMENT_TARGET: '11.0'
20-
PYTHON_VERSION: '3.10'
20+
PYTHON_VERSION: '3.11'
2121
TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}
2222
CCACHE_MAXSIZE: 500Mi
2323

@@ -55,7 +55,7 @@ jobs:
5555
matrix:
5656
build-type: [Release]
5757
needs: [ openvino_download ]
58-
timeout-minutes: 20
58+
timeout-minutes: 30
5959
defaults:
6060
run:
6161
shell: bash
@@ -133,7 +133,7 @@ jobs:
133133
genai_build_wheel:
134134
name: Build Wheel
135135
needs: [ openvino_download ]
136-
timeout-minutes: 20
136+
timeout-minutes: 30
137137
defaults:
138138
run:
139139
shell: bash

tests/python_tests/test_vlm_pipeline.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ def get_image_by_link(link):
6868
from openvino import Tensor
6969
import numpy as np
7070

71-
image = Image.open(requests.get(link, stream=True).raw)
71+
try:
72+
response = requests.get(link, stream=True)
73+
response.raise_for_status()
74+
image = Image.open(response.raw)
75+
except (requests.RequestException, Image.UnidentifiedImageError) as e:
76+
raise ValueError(f"Failed to load image from {link}: {e}")
7277
if image.mode != 'RGB':
7378
image = image.convert('RGB')
7479
image_data = np.array(image)

0 commit comments

Comments
 (0)