Skip to content

Commit

Permalink
Enable python3.12 in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
akuporos committed Aug 7, 2024
1 parent 96d900b commit 77afba8
Show file tree
Hide file tree
Showing 29 changed files with 91 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .github/dockerfiles/docker_tag
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pr-25912
pr-25964
12 changes: 6 additions & 6 deletions .github/dockerfiles/ov_build/ubuntu_20_04_arm64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ RUN apt-get update && \
python3.8-dev \
python3.8-venv \
python3.8-distutils \
python3.11-dev \
python3.11-venv \
python3.11-distutils \
python3.12-dev \
python3.12-venv \
python3.12-distutils \
libhdf5-dev \
# For Java API
default-jdk \
Expand Down Expand Up @@ -62,12 +62,12 @@ RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
rm -f get-pip.py

# Use Python 3.11 as default instead of Python 3.8
# Use Python 3.12 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
RUN python3.11 -m venv venv
RUN python3.12 -m venv venv
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"

ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
12 changes: 6 additions & 6 deletions .github/dockerfiles/ov_build/ubuntu_20_04_x64_nvidia/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ RUN apt-get update && \
python3.8-dev \
python3.8-venv \
python3.8-distutils \
python3.11-dev \
python3.11-venv \
python3.11-distutils \
python3.12-dev \
python3.12-venv \
python3.12-distutils \
# For Java API
default-jdk \
# Compiler \
Expand Down Expand Up @@ -78,12 +78,12 @@ RUN apt update && apt install -y \
ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
rm -f get-pip.py

# Use Python 3.11 as default instead of Python 3.8
# Use Python 3.12 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
RUN python3.11 -m venv venv
RUN python3.12 -m venv venv
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"

ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
12 changes: 6 additions & 6 deletions .github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RUN apt-get update && \
tzdata \
libtbb2 \
# Pythons \
python3.11-dev \
python3.11-venv \
python3.11-distutils \
python3.12-dev \
python3.12-venv \
python3.12-distutils \
# For Java API
default-jdk \
&& \
Expand All @@ -52,12 +52,12 @@ ENV PATH="$SCCACHE_HOME:$PATH"
ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
rm -f get-pip.py

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

ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
12 changes: 6 additions & 6 deletions .github/dockerfiles/ov_build/ubuntu_22_04_x64_cc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ RUN apt-get update && \
python3.8-dev \
python3.8-venv \
python3.8-distutils \
python3.11-dev \
python3.11-venv \
python3.11-distutils \
python3.12-dev \
python3.12-venv \
python3.12-distutils \
# For Java API
default-jdk \
# Compiler \
Expand Down Expand Up @@ -61,12 +61,12 @@ RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \
ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3.8 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
rm -f get-pip.py

# Use Python 3.11 as default instead of Python 3.8
# Use Python 3.12 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
RUN python3.11 -m venv venv
RUN python3.12 -m venv venv
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"

ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
12 changes: 6 additions & 6 deletions .github/dockerfiles/ov_build/ubuntu_22_04_x64_nvidia/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RUN apt-get update && \
gpg-agent \
tzdata \
# Python
python3.11-dev \
python3.11-venv \
python3.11-distutils \
python3.12-dev \
python3.12-venv \
python3.12-distutils \
# For Java API
default-jdk \
&& \
Expand Down Expand Up @@ -61,12 +61,12 @@ RUN apt-get update && apt-get install -y cuda-runtime-11-8 cuda-11-8 && apt-get
# Setup pip
ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
rm -f get-pip.py

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

ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
14 changes: 7 additions & 7 deletions .github/dockerfiles/ov_test/ubuntu_20_04_arm64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RUN apt-get update && \
gpg-agent \
tzdata \
# Python
python3.11-dev \
python3.11-venv \
python3.11-distutils \
python3.12-dev \
python3.12-venv \
python3.12-distutils \
libhdf5-dev \
&& \
rm -rf /var/lib/apt/lists/*
Expand All @@ -39,13 +39,13 @@ 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 && \
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
rm -f get-pip.py

# Use Python 3.11 as default instead of Python 3.8
# Use Python 3.12 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
RUN python3.11 -m venv venv
RUN python3.12 -m venv venv
ENV PATH="/venv/bin:$PATH"

ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
ENV PIP_INSTALL_PATH=/venv/lib/python3.11/site-packages
ENV PIP_INSTALL_PATH=/venv/lib/python3.12/site-packages
14 changes: 7 additions & 7 deletions .github/dockerfiles/ov_test/ubuntu_22_04_x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RUN apt-get update && \
gpg-agent \
tzdata \
# Python
python3.11-dev \
python3.11-venv \
python3.11-distutils \
python3.12-dev \
python3.12-venv \
python3.12-distutils \
libhdf5-dev \
&& \
rm -rf /var/lib/apt/lists/*
Expand All @@ -40,13 +40,13 @@ RUN chmod +x /install_openvino_dependencies.sh && \
ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
python3.12 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
rm -f get-pip.py

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

ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
ENV PIP_INSTALL_PATH=/venv/lib/python3.11/site-packages
ENV PIP_INSTALL_PATH=/venv/lib/python3.12/site-packages
4 changes: 2 additions & 2 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Coverity (Ubuntu 20.04, Python 3.11)
name: Coverity (Ubuntu 20.04, Python 3.12)
on:
workflow_dispatch:
inputs:
Expand All @@ -18,7 +18,7 @@ permissions: read-all

env:
PIP_CACHE_PATH: /mount/caches/pip/linux
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'

jobs:
Build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dev_cpu_linux_snippets_libxsmm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ jobs:
sparse-checkout-cone-mode: false
path: 'openvino'

- name: Setup Python 3.11
- name: Setup Python 3.12
uses: ./openvino/.github/actions/setup_python
with:
version: '3.11'
version: '3.12'
should-setup-pip-paths: 'false'
self-hosted-runner: ${{ runner.os == 'Linux' }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/job_cpu_functional_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ jobs:
sparse-checkout-cone-mode: false
path: 'openvino'

- name: Setup Python 3.11
- name: Setup Python 3.12
uses: ./openvino/.github/actions/setup_python
with:
version: '3.11'
version: '3.12'
should-setup-pip-paths: 'false'
self-hosted-runner: ${{ runner.os == 'Linux' }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job_gpu_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/intel-level-zero-gpu_1.3.28454.6_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/intel-opencl-icd-dbgsym_24.05.28454.6_amd64.ddeb
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/intel-opencl-icd_24.05.28454.6_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/libigdgmm12_22.3.11_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/24.05.28454.6/libigdgmm12_22.3.12_amd64.deb
dpkg -i *.deb
- name: Install media & display runtimes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job_python_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions: read-all

env:
PIP_CACHE_PATH: /mount/caches/pip/linux
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'

jobs:
Python_Unit_Tests:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/job_pytorch_models_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ jobs:
# install 'g++' to build 'detectron2' and 'natten' wheels
sudo apt-get install --assume-yes --no-install-recommends g++ git ca-certificates
- name: Setup Python 3.11
- name: Setup Python 3.12
uses: ./openvino/.github/actions/setup_python
with:
version: '3.11'
version: '3.12'
should-setup-pip-paths: 'false'
self-hosted-runner: ${{ contains(inputs.runner, 'aks') }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/job_samples_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ jobs:
sparse-checkout-cone-mode: false
path: 'openvino'

- name: Setup Python 3.11
- name: Setup Python 3.12
# Python is already installed on Ubuntu within Dockerfile
if: runner.os != 'Linux'
uses: ./openvino/.github/actions/setup_python
with:
version: '3.11'
version: '3.12'
should-setup-pip-paths: 'false'

- name: Build cpp samples - GCC
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job_tensorflow_layer_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ permissions: read-all

env:
PIP_CACHE_PATH: /mount/caches/pip/linux
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'

jobs:
TensorFlow_Layer_Tests:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/job_tensorflow_models_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ jobs:
sparse-checkout-cone-mode: false
path: 'openvino'

- name: Setup Python 3.11
- name: Setup Python 3.12
uses: ./openvino/.github/actions/setup_python
with:
version: '3.11'
version: '3.12'
should-setup-pip-paths: 'false'
self-hosted-runner: ${{ contains(inputs.runner, 'aks') }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job_tokenizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ permissions: read-all

env:
PIP_CACHE_PATH: /mount/caches/pip/linux
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'

jobs:
Openvino_tokenizers:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux_arm64.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux ARM64 (Ubuntu 20.04, Python 3.11)
name: Linux ARM64 (Ubuntu 20.04, Python 3.12)
on:
workflow_dispatch:
pull_request:
Expand All @@ -17,7 +17,7 @@ permissions: read-all

env:
PIP_CACHE_PATH: /mount/caches/pip/linux
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'

jobs:
Smart_CI:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux_conditional_compilation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux Static CC (Ubuntu 22.04, Python 3.11, Clang)
name: Linux Static CC (Ubuntu 22.04, Python 3.12, Clang)
on:
workflow_dispatch:
pull_request:
Expand All @@ -17,7 +17,7 @@ permissions: read-all

env:
PIP_CACHE_PATH: /mount/caches/pip/linux
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'

jobs:
Smart_CI:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux_sanitizers.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux Sanitizers (Ubuntu 20.04, Python 3.11)
name: Linux Sanitizers (Ubuntu 20.04, Python 3.12)
on:
schedule:
# run daily at 00:00
Expand All @@ -15,7 +15,7 @@ permissions: read-all

env:
PIP_CACHE_PATH: /mount/caches/pip/linux
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'

jobs:
Build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: macOS (Python 3.11)
name: macOS (Python 3.12)
on:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -32,7 +32,7 @@ concurrency:
permissions: read-all

env:
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'

jobs:
Smart_CI:
Expand Down
Loading

0 comments on commit 77afba8

Please sign in to comment.