Skip to content

Commit 77afba8

Browse files
committed
Enable python3.12 in GHA
1 parent 96d900b commit 77afba8

29 files changed

+91
-91
lines changed

.github/dockerfiles/docker_tag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pr-25912
1+
pr-25964

.github/dockerfiles/ov_build/ubuntu_20_04_arm64/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ RUN apt-get update && \
2626
python3.8-dev \
2727
python3.8-venv \
2828
python3.8-distutils \
29-
python3.11-dev \
30-
python3.11-venv \
31-
python3.11-distutils \
29+
python3.12-dev \
30+
python3.12-venv \
31+
python3.12-distutils \
3232
libhdf5-dev \
3333
# For Java API
3434
default-jdk \
@@ -62,12 +62,12 @@ RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
6262
ENV PIP_VERSION="24.0"
6363
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
6464
python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
65-
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
65+
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
6666
rm -f get-pip.py
6767

68-
# Use Python 3.11 as default instead of Python 3.8
68+
# Use Python 3.12 as default instead of Python 3.8
6969
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
70-
RUN python3.11 -m venv venv
70+
RUN python3.12 -m venv venv
7171
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
7272

7373
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}

.github/dockerfiles/ov_build/ubuntu_20_04_x64_nvidia/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ RUN apt-get update && \
2727
python3.8-dev \
2828
python3.8-venv \
2929
python3.8-distutils \
30-
python3.11-dev \
31-
python3.11-venv \
32-
python3.11-distutils \
30+
python3.12-dev \
31+
python3.12-venv \
32+
python3.12-distutils \
3333
# For Java API
3434
default-jdk \
3535
# Compiler \
@@ -78,12 +78,12 @@ RUN apt update && apt install -y \
7878
ENV PIP_VERSION="24.0"
7979
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
8080
python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
81-
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
81+
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
8282
rm -f get-pip.py
8383

84-
# Use Python 3.11 as default instead of Python 3.8
84+
# Use Python 3.12 as default instead of Python 3.8
8585
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
86-
RUN python3.11 -m venv venv
86+
RUN python3.12 -m venv venv
8787
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
8888

8989
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}

.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ RUN apt-get update && \
2323
tzdata \
2424
libtbb2 \
2525
# Pythons \
26-
python3.11-dev \
27-
python3.11-venv \
28-
python3.11-distutils \
26+
python3.12-dev \
27+
python3.12-venv \
28+
python3.12-distutils \
2929
# For Java API
3030
default-jdk \
3131
&& \
@@ -52,12 +52,12 @@ ENV PATH="$SCCACHE_HOME:$PATH"
5252
ENV PIP_VERSION="24.0"
5353
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
5454
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
55-
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
55+
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
5656
rm -f get-pip.py
5757

58-
# Use Python 3.11 as default
58+
# Use Python 3.12 as default
5959
# Using venv here 'cause other methods to switch the default Python on Ubuntu break both system and wheels build
60-
RUN python3.11 -m venv venv
60+
RUN python3.12 -m venv venv
6161
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
6262

6363
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}

.github/dockerfiles/ov_build/ubuntu_22_04_x64_cc/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ RUN apt-get update && \
2727
python3.8-dev \
2828
python3.8-venv \
2929
python3.8-distutils \
30-
python3.11-dev \
31-
python3.11-venv \
32-
python3.11-distutils \
30+
python3.12-dev \
31+
python3.12-venv \
32+
python3.12-distutils \
3333
# For Java API
3434
default-jdk \
3535
# Compiler \
@@ -61,12 +61,12 @@ RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
6161
ENV PIP_VERSION="24.0"
6262
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
6363
python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
64-
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
64+
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
6565
rm -f get-pip.py
6666

67-
# Use Python 3.11 as default instead of Python 3.8
67+
# Use Python 3.12 as default instead of Python 3.8
6868
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
69-
RUN python3.11 -m venv venv
69+
RUN python3.12 -m venv venv
7070
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
7171

7272
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}

.github/dockerfiles/ov_build/ubuntu_22_04_x64_nvidia/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ RUN apt-get update && \
2323
gpg-agent \
2424
tzdata \
2525
# Python
26-
python3.11-dev \
27-
python3.11-venv \
28-
python3.11-distutils \
26+
python3.12-dev \
27+
python3.12-venv \
28+
python3.12-distutils \
2929
# For Java API
3030
default-jdk \
3131
&& \
@@ -61,12 +61,12 @@ RUN apt-get update && apt-get install -y cuda-runtime-11-8 cuda-11-8 && apt-get
6161
# Setup pip
6262
ENV PIP_VERSION="24.0"
6363
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
64-
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
64+
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
6565
rm -f get-pip.py
6666

67-
# Use Python 3.11 as default
67+
# Use Python 3.12 as default
6868
# Using venv here 'cause other methods to switch the default Python on Ubuntu 22 break both system and wheels build
69-
RUN python3.11 -m venv venv
69+
RUN python3.12 -m venv venv
7070
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
7171

7272
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}

.github/dockerfiles/ov_test/ubuntu_20_04_arm64/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ RUN apt-get update && \
2323
gpg-agent \
2424
tzdata \
2525
# Python
26-
python3.11-dev \
27-
python3.11-venv \
28-
python3.11-distutils \
26+
python3.12-dev \
27+
python3.12-venv \
28+
python3.12-distutils \
2929
libhdf5-dev \
3030
&& \
3131
rm -rf /var/lib/apt/lists/*
@@ -39,13 +39,13 @@ RUN chmod +x /install_openvino_dependencies.sh && \
3939
# Setup pip
4040
ENV PIP_VERSION="24.0"
4141
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
42-
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
42+
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
4343
rm -f get-pip.py
4444

45-
# Use Python 3.11 as default instead of Python 3.8
45+
# Use Python 3.12 as default instead of Python 3.8
4646
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
47-
RUN python3.11 -m venv venv
47+
RUN python3.12 -m venv venv
4848
ENV PATH="/venv/bin:$PATH"
4949

5050
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
51-
ENV PIP_INSTALL_PATH=/venv/lib/python3.11/site-packages
51+
ENV PIP_INSTALL_PATH=/venv/lib/python3.12/site-packages

.github/dockerfiles/ov_test/ubuntu_22_04_x64/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ RUN apt-get update && \
2323
gpg-agent \
2424
tzdata \
2525
# Python
26-
python3.11-dev \
27-
python3.11-venv \
28-
python3.11-distutils \
26+
python3.12-dev \
27+
python3.12-venv \
28+
python3.12-distutils \
2929
libhdf5-dev \
3030
&& \
3131
rm -rf /var/lib/apt/lists/*
@@ -40,13 +40,13 @@ RUN chmod +x /install_openvino_dependencies.sh && \
4040
ENV PIP_VERSION="24.0"
4141
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
4242
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
43-
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
43+
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
4444
rm -f get-pip.py
4545

46-
# Use Python 3.11 as default
46+
# Use Python 3.12 as default
4747
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
48-
RUN python3.11 -m venv venv
48+
RUN python3.12 -m venv venv
4949
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"
5050

5151
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
52-
ENV PIP_INSTALL_PATH=/venv/lib/python3.11/site-packages
52+
ENV PIP_INSTALL_PATH=/venv/lib/python3.12/site-packages

.github/workflows/coverity.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Coverity (Ubuntu 20.04, Python 3.11)
1+
name: Coverity (Ubuntu 20.04, Python 3.12)
22
on:
33
workflow_dispatch:
44
inputs:
@@ -18,7 +18,7 @@ permissions: read-all
1818

1919
env:
2020
PIP_CACHE_PATH: /mount/caches/pip/linux
21-
PYTHON_VERSION: '3.11'
21+
PYTHON_VERSION: '3.12'
2222

2323
jobs:
2424
Build:

.github/workflows/dev_cpu_linux_snippets_libxsmm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ jobs:
245245
sparse-checkout-cone-mode: false
246246
path: 'openvino'
247247

248-
- name: Setup Python 3.11
248+
- name: Setup Python 3.12
249249
uses: ./openvino/.github/actions/setup_python
250250
with:
251-
version: '3.11'
251+
version: '3.12'
252252
should-setup-pip-paths: 'false'
253253
self-hosted-runner: ${{ runner.os == 'Linux' }}
254254

0 commit comments

Comments
 (0)