Skip to content

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

[CI] [GHA] Use Ubuntu 22 for py3.13 tests in manylinux Python API job (#35992)

Andrei Kashchikhinf62a7a911154
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tag
index e080c25f965..98e35f71a6f 100644
--- a/.github/dockerfiles/docker_tag
+++ b/.github/dockerfiles/docker_tag
@@ -1 +1 @@
-pr-35952
+pr-35992
diff --git a/.github/dockerfiles/ov_test/ubuntu_20_04_x64_py313/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py313/Dockerfile
similarity index 84%
rename from .github/dockerfiles/ov_test/ubuntu_20_04_x64_py313/Dockerfile
rename to .github/dockerfiles/ov_test/ubuntu_22_04_x64_py313/Dockerfile
index 57d2bb7c226..3c224a5519a 100644
--- a/.github/dockerfiles/ov_test/ubuntu_20_04_x64_py313/Dockerfile
+++ b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py313/Dockerfile
@@ -1,5 +1,5 @@
ARG REGISTRY="docker.io"
-FROM ${REGISTRY}/library/ubuntu:20.04
+FROM ${REGISTRY}/library/ubuntu:22.04
USER root
@@ -39,13 +39,12 @@ RUN chmod +x /install_openvino_dependencies.sh && \
# Setup pip
ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
- curl https://bootstrap.pypa.io/pip/3.8/get-pip.py -o get-pip-3-8.py && \
- python3 get-pip-3-8.py --no-cache-dir pip==${PIP_VERSION} && \
+ python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.13 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
rm -f get-pip.py
-# Use Python 3.13 as default instead of Python 3.8
-# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
+# Use Python 3.13 as default instead of Python 3.10
+# Using venv here 'cause other methods to switch the default Python on Ubuntu 22 break both system and wheels build
RUN python3.13 -m venv venv
ENV PATH="/venv/bin:$PATH"
diff --git a/.github/workflows/manylinux_2_28.yml b/.github/workflows/manylinux_2_28.yml
index 15822f71b45..6d904042c3c 100644
--- a/.github/workflows/manylinux_2_28.yml
+++ b/.github/workflows/manylinux_2_28.yml
@@ -74,7 +74,7 @@ jobs:
- name: Set mock output images if pipeline should be skipped
if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}
id: mock_image
- run: echo "images={\"ov_test\":{\"ubuntu_20_04_x64_py313\":\"mock\"},\"ov_test\":{\"ubuntu_22_04_x64\":\"mock\"},\"ov_test\":{\"ubuntu_22_04_x64_py314\":\"mock\"},\"ov_test\":{\"ubuntu_24_04_x64\":\"mock\"},\"ov_test\":{\"fedora_33\":\"mock\"},\"ov_test\":{\"debian_10_py310\":\"mock\"},\"ov_build\":{\"manylinux_2_28\":\"mock\"}}" >> "$GITHUB_OUTPUT"
+ run: echo "images={\"ov_test\":{\"ubuntu_22_04_x64_py313\":\"mock\"},\"ov_test\":{\"ubuntu_22_04_x64\":\"mock\"},\"ov_test\":{\"ubuntu_22_04_x64_py314\":\"mock\"},\"ov_test\":{\"ubuntu_24_04_x64\":\"mock\"},\"ov_test\":{\"fedora_33\":\"mock\"},\"ov_test\":{\"debian_10_py310\":\"mock\"},\"ov_build\":{\"manylinux_2_28\":\"mock\"}}" >> "$GITHUB_OUTPUT"
- name: Checkout
if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}
@@ -87,7 +87,7 @@ jobs:
with:
images: |
ov_build/manylinux_2_28
- ov_test/ubuntu_20_04_x64_py313
+ ov_test/ubuntu_22_04_x64_py313
ov_test/ubuntu_22_04_x64
ov_test/ubuntu_22_04_x64_py314
ov_test/ubuntu_22_04_x64_py314t
@@ -312,7 +312,7 @@ jobs:
- python-version: "3.12"
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}
- python-version: "3.13"
- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_x64_py313 }}
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64_py313 }}
- python-version: "3.14"
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64_py314 }}
- python-version: "3.14t"