diff --git a/.github/checkgroup.yml b/.github/checkgroup.yml index e1f6b0c3735..57c7ab30a60 100644 --- a/.github/checkgroup.yml +++ b/.github/checkgroup.yml @@ -30,6 +30,40 @@ subprojects: - "optimize-unit-test-PR-test" - "Genreate-OptimizeUT-Report" + - id: "NeuralChat Unit Test" + paths: + - ".github/workflows/unit-test-neuralchat.yml" + - ".github/workflows/script/unitTest/run_unit_test_neuralchat.sh" + - "intel_extension_for_transformers/neural_chat/**" + - "requirements.txt" + - "setup.py" + - "intel_extension_for_transformers/transformers/llm/finetuning/**" + - "intel_extension_for_transformers/transformers/llm/quantization/**" + - "intel_extension_for_transformers/transformers/**" + - "intel_extension_for_transformers/langchain/**" + - "!intel_extension_for_transformers/neural_chat/docs/**" + - "!intel_extension_for_transformers/neural_chat/examples/**" + - "!intel_extension_for_transformers/neural_chat/assets/**" + - "!intel_extension_for_transformers/neural_chat/README.md" + checks: + - "neuralchat-unit-test-baseline" + - "neuralchat-unit-test-PR-test" + - "Generate-NeuralChat-Report" + + - id: "Engine Unit Test workflow" + paths: + - ".github/workflows/unit-test-engine.yml" + - "requirements.txt" + - "setup.py" + - intel_extension_for_transformers/transformers/** + - "intel_extension_for_transformers/transformers/runtime/**" + - "!intel_extension_for_transformers/transformers/runtime/kernels/**" + - "!intel_extension_for_transformers/transformers/runtime/third_party/**" + - "!intel_extension_for_transformers/transformers/runtime/docs/**" + checks: + - "engine-unit-test-baseline" + - "engine-unit-test-PR-test" + - "Genreate-Engine-Report" # - id: "Windows Binary Test" # paths: diff --git a/.github/workflows/script/unitTest/env_setup.sh b/.github/workflows/script/unitTest/env_setup.sh index 4afbf606c32..bdf1e44b5bd 100644 --- a/.github/workflows/script/unitTest/env_setup.sh +++ b/.github/workflows/script/unitTest/env_setup.sh @@ -1,6 +1,6 @@ pip list -inc=$(pip list | grep -c 'neural-compressor') || true # Prevent from exiting when 'inc' not found +inc=$(pip list | grep -c 'neural[-_]compressor') || true # Prevent from exiting when 'inc' not found if [ ${inc} != 0 ]; then pip uninstall neural-compressor -y pip list diff --git a/.github/workflows/unit-test-engine.yml b/.github/workflows/unit-test-engine.yml index d0045bac863..06f024434fe 100644 --- a/.github/workflows/unit-test-engine.yml +++ b/.github/workflows/unit-test-engine.yml @@ -62,7 +62,7 @@ jobs: with: submodules: "recursive" ref: ${{ matrix.test_branch }} - fetch-tags: true + fetch-depth: 0 - name: Docker Build run: | diff --git a/.github/workflows/unit-test-neuralchat.yml b/.github/workflows/unit-test-neuralchat.yml index f2a6e15b2ac..e08e6c09a69 100644 --- a/.github/workflows/unit-test-neuralchat.yml +++ b/.github/workflows/unit-test-neuralchat.yml @@ -69,7 +69,7 @@ jobs: with: submodules: "recursive" ref: ${{ matrix.test_branch }} - fetch-tags: true + fetch-depth: 0 - name: docker Build run: |