Use Python 3.10 on Azure from GitHub actions (#13550)

* Merge master, use new token

* Minor changes

* Relax Python version

* Apply new python to rest of jobs

* Revert changes to custom images

* Minor changes

* Revert win changes

* Upgrade cython

* Test with lower cython

* Remove venv

* Cleanup

* Relax version spec

* Fix lin

* Revert changes to linux.yml

* Minor changes
This commit is contained in:
Przemyslaw Wysocki authored and GitHub committed 2023-01-11 17:46:24 +04:00
1 parent a8a59f3cb4
commit 21267269da
5 files changed
+50 -11

No files matched your search

+12 -3
View File
@@ -37,6 +37,9 @@ resources:
name: openvinotoolkit/openvino_contrib
ref: master
variables:
- group: github
jobs:
- job: android_arm64
# About 150% of total time
@@ -62,13 +65,19 @@ jobs:
CCACHE_DIR: $(SHARE_DIR)/ccache/master/android_arm64
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.10'
addToPath: true
architecture: 'x64'
githubToken: $(auth_token)
displayName: Setup Python 3.10
name: setupPython
- script: |
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
whoami
uname -a
echo ls /usr/bin/python3.10
rm -rf /usr/bin/python3
sudo ln -s /usr/bin/python3.10 /usr/bin/python3
echo Python3 info ; which python3 ; python3 --version
echo Python info ; which python ; python --version
echo Java info ; which java ; java -version
+13 -3
View File
@@ -6,6 +6,9 @@ resources:
name: openvinotoolkit/openvino_contrib
ref: master
variables:
- group: github
jobs:
- job: Lin
# About 150% of total time
@@ -31,13 +34,20 @@ jobs:
CCACHE_DIR: $(SHARE_DIR)/ccache/master/linux_coverity
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.10'
addToPath: true
architecture: 'x64'
githubToken: $(auth_token)
displayName: Setup Python 3.10
name: setupPython
- script: |
curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2019-06-01"
whoami
uname -a
echo ls /usr/bin/python3.10
rm -rf /usr/bin/python3
sudo ln -s /usr/bin/python3.10 /usr/bin/python3
echo Python3 info ; which python3 ; python3 --version
echo Python info ; which python ; python --version
echo Java info ; which java ; java -version
+12 -4
View File
@@ -41,6 +41,9 @@ resources:
name: openvinotoolkit/testdata
ref: master
variables:
- group: github
jobs:
- job: Mac
# About 250% of total time (perfomace of Mac hosts is unstable, 360 is max)
@@ -66,13 +69,18 @@ jobs:
CCACHE_DIR: $(WORK_DIR)/ccache/mac
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.10'
addToPath: true
architecture: 'x64'
githubToken: $(auth_token)
displayName: Setup Python 3.10
name: setupPython
- script: |
whoami
uname -a
echo test_debug ; which python3
echo ls /usr/bin/python3.10
sudo rm -rf /usr/bin/python3
sudo ln -s /usr/bin/python3.10 /usr/bin/python3
echo Python3 info ; which python3 ; python3 --version
echo Python info ; which python ; python --version
echo Java info ; which java ; java -version
@@ -36,6 +36,9 @@ resources:
endpoint: openvinotoolkit
name: openvinotoolkit/testdata
variables:
- group: github
jobs:
- job: WinCC
# About 150% of total time
@@ -60,6 +63,15 @@ jobs:
SETUPVARS: $(INSTALL_DIR)\setupvars.bat
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.10'
addToPath: true
architecture: 'x64'
githubToken: $(auth_token)
displayName: Setup Python 3.10
name: setupPython
- script: |
powershell -command "Invoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -Uri http://169.254.169.254/metadata/instance/compute?api-version=2019-06-01 | format-custom"
where python
+1 -1
View File
@@ -21,7 +21,7 @@ endif()
#
set(ov_python_req "${OpenVINOPython_SOURCE_DIR}/requirements.txt")
set(ie_python_req "cython>=0.29.22")
set(ie_python_req "cython>=0.29.32")
function(ov_check_python_build_conditions)
# user explicitly specified ENABLE_PYTHON=ON