12
12
type : string
13
13
required : false
14
14
default : ' {"image": null}'
15
+ affected-components :
16
+ description : ' Components that are affected by changes in the commit defined by the Smart CI Action'
17
+ type : string
18
+ required : true
15
19
python-version :
16
20
description : ' Python version to setup. E.g., "3.11"'
17
21
type : string
25
29
jobs :
26
30
Python_Unit_Tests :
27
31
name : Python API tests
32
+ if : ${{ fromJSON(inputs.affected-components).Python_API.test || fromJSON(inputs.affected-components).docs_snippets.test }}
28
33
timeout-minutes : 30
29
34
runs-on : ${{ inputs.runner }}
30
35
container : ${{ fromJSON(inputs.container) }}
95
100
#
96
101
97
102
- name : Python API Tests
103
+ if : fromJSON(inputs.affected-components).Python_API.test
98
104
run : |
99
105
# for 'template' extension
100
106
export LD_LIBRARY_PATH=${INSTALL_TEST_DIR}/tests/:$LD_LIBRARY_PATH
@@ -103,6 +109,7 @@ jobs:
103
109
--ignore=${INSTALL_TEST_DIR}/tests/pyopenvino/tests/test_utils/test_utils.py
104
110
105
111
- name : Python API Tests -- numpy<2.0.0
112
+ if : fromJSON(inputs.affected-components).Python_API.test
106
113
run : |
107
114
python3 -m pip uninstall -y numpy
108
115
python3 -m pip install "numpy~=1.26.0"
@@ -114,7 +121,7 @@ jobs:
114
121
--ignore=${INSTALL_TEST_DIR}/tests/pyopenvino/tests/test_utils/test_utils.py
115
122
116
123
- name : Clone API snippets
117
- if : runner.os != 'macOS'
124
+ if : ${{ runner.os != 'macOS' && fromJSON(inputs.affected-components).docs_snippets.test }}
118
125
uses : actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
119
126
timeout-minutes : 15
120
127
with :
@@ -123,7 +130,7 @@ jobs:
123
130
submodules : ' false'
124
131
125
132
- name : Docs Python snippets
126
- if : runner.os != 'macOS'
133
+ if : ${{ runner.os != 'macOS' && fromJSON(inputs.affected-components).docs_snippets.test }}
127
134
run : |
128
135
# torch, onnx
129
136
python3 -m pip install -r ${INSTALL_TEST_DIR}/tests/python/preprocess/torchvision/requirements.txt -r ${INSTALL_TEST_DIR}/tests/requirements_onnx
0 commit comments