55 test-runner :
66 description : ' Machine on which the tests will run'
77 type : string
8- required : false
8+ required : true
99 openvino-install-artifact :
1010 description : ' OpenVINO/NPU build package name to be downloaded for tests'
1111 type : string
1212 required : true
13- default : false
14- run-unit-tests :
15- description : ' Whether to run NPU Compiler unit tests'
16- type : boolean
17- required : false
18- default : false
19- run-lit-tests :
20- description : ' Whether to run NPU Compiler LIT tests'
21- type : boolean
22- required : false
23- default : false
24- run-compilation-tests :
25- description : ' Whether to run NPU Compiler compile_tool tests suites'
26- type : boolean
13+ driver-install-artifact :
14+ description : ' NPU Driver build package name to be downloaded for tests'
15+ type : string
2716 required : false
28- default : false
17+ compiler-type :
18+ description : ' MLIR or DRIVER'
19+ type : string
20+ required : true
2921
3022defaults :
3123 run :
3729 OPENVINO_INSTALL_DIR : ./openvino_install
3830
3931jobs :
40- UnitTests :
41- name : Unit Tests
42- if : ${{ inputs.run-unit-tests || inputs.run-lit-tests }}
43- runs-on : ${{ inputs.test-runner }}
44- timeout-minutes : 60
45- steps :
46- - name : Download artifacts
47- uses : actions/download-artifact@v4
48- with :
49- name : ${{ inputs.openvino-install-artifact }}
50- path : ${{ env.OPENVINO_INSTALL_DIR }}
51-
52- - name : Prepare environment
53- run : |
54- echo "PROF_PARSER_PATH=$(realpath "${OPENVINO_INSTALL_DIR}/tools/prof_parser")" >> $GITHUB_ENV
55- echo "LSP_SERVER_PATH=$(realpath "${OPENVINO_INSTALL_DIR}/tools/npu-lsp-server")" >> $GITHUB_ENV
56- echo "VPUX_OPT_PATH=$(realpath "${OPENVINO_INSTALL_DIR}/tools/vpux-opt")" >> $GITHUB_ENV
57- chmod +x ${OPENVINO_INSTALL_DIR}/setupvars.sh
58- chmod +x ${OPENVINO_INSTALL_DIR}/tests/FileCheck
59- chmod +x ${OPENVINO_INSTALL_DIR}/tests/flatc
60- chmod +x ${OPENVINO_INSTALL_DIR}/tests/not
61- chmod +x ${OPENVINO_INSTALL_DIR}/tools/prof_parser/prof_parser
62- chmod +x ${OPENVINO_INSTALL_DIR}/tools/npu-lsp-server/npu-lsp-server
63- chmod +x ${OPENVINO_INSTALL_DIR}/tools/vpux-opt/vpux-opt
64-
65- - name : Run OV NPU Unit tests
66- if : ${{ inputs.run-unit-tests }}
67- run : |
68- source ${OPENVINO_INSTALL_DIR}/setupvars.sh
69- chmod +x ${OPENVINO_INSTALL_DIR}/tests/ov_npu_unit_tests
70- ${OPENVINO_INSTALL_DIR}/tests/ov_npu_unit_tests
71-
72- - name : Run NPU Unit tests
73- if : ${{ inputs.run-unit-tests }}
74- run : |
75- source ${OPENVINO_INSTALL_DIR}/setupvars.sh
76- chmod +x ${OPENVINO_INSTALL_DIR}/tests/npuUnitTests
77- ${OPENVINO_INSTALL_DIR}/tests/npuUnitTests
78-
79- - name : Run NPU37XX LIT tests
80- if : ${{ inputs.run-lit-tests }}
81- run : |
82- source ${OPENVINO_INSTALL_DIR}/setupvars.sh
83- export PATH=$PATH:${PROF_PARSER_PATH}:${LSP_SERVER_PATH}:${VPUX_OPT_PATH}
84- cd ${OPENVINO_INSTALL_DIR}/tests/lit-tests
85- python3 ./lit-tool/lit.py -v --param arch=NPU37XX NPU/NPU
86-
87- - name : Run NPU40XX LIT tests
88- if : ${{ inputs.run-lit-tests }}
89- run : |
90- source ${OPENVINO_INSTALL_DIR}/setupvars.sh
91- export PATH=$PATH:${PROF_PARSER_PATH}:${LSP_SERVER_PATH}:${VPUX_OPT_PATH}
92- cd ${OPENVINO_INSTALL_DIR}/tests/lit-tests
93- python3 ./lit-tool/lit.py -v --param arch=NPU40XX NPU/NPU
94-
9532 # TODO: This is a demonstration job. It will be separated into downloading and compilation actions and a config.
9633 CompilationTests :
9734 name : Compilation tests
@@ -101,17 +38,24 @@ jobs:
10138 env :
10239 MODELS_DIR : ./models
10340 steps :
104- - name : Download artifacts
41+ - name : Download OpenVINO artifacts
10542 uses : actions/download-artifact@v4
10643 with :
10744 name : ${{ inputs.openvino-install-artifact }}
10845 path : ${{ env.OPENVINO_INSTALL_DIR }}
10946
47+ - name : Download Driver artifacts
48+ if : ${{ inputs.compiler-type == 'DRIVER' }}
49+ uses : actions/download-artifact@v4
50+ with :
51+ name : ${{ inputs.driver-install-artifact }}
52+ path : ${{ env.OPENVINO_INSTALL_DIR }}
53+
11054 - name : Prepare environment
11155 run : |
11256 chmod +x ${OPENVINO_INSTALL_DIR}/setupvars.sh
11357 chmod +x ${OPENVINO_INSTALL_DIR}/tools/compile_tool/compile_tool
114- echo "NPU_COMPILER_TYPE MLIR " > common_compilation_config.conf
58+ echo "NPU_COMPILER_TYPE ${{ inputs.compiler-type }} " > common_compilation_config.conf
11559
11660 - name : Install huggingface_hub
11761 run : |
0 commit comments