Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit bc268c5

Browse files
authored
Fix CI inc3.x install (#1668)
Signed-off-by: Sun, Xuehao <[email protected]>
1 parent b12a11b commit bc268c5

File tree

5 files changed

+40
-3
lines changed

5 files changed

+40
-3
lines changed

.github/checkgroup.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,40 @@ subprojects:
3030
- "optimize-unit-test-PR-test"
3131
- "Genreate-OptimizeUT-Report"
3232

33+
# - id: "NeuralChat Unit Test"
34+
# paths:
35+
# - ".github/workflows/unit-test-neuralchat.yml"
36+
# - ".github/workflows/script/unitTest/run_unit_test_neuralchat.sh"
37+
# - "intel_extension_for_transformers/neural_chat/**"
38+
# - "requirements.txt"
39+
# - "setup.py"
40+
# - "intel_extension_for_transformers/transformers/llm/finetuning/**"
41+
# - "intel_extension_for_transformers/transformers/llm/quantization/**"
42+
# - "intel_extension_for_transformers/transformers/**"
43+
# - "intel_extension_for_transformers/langchain/**"
44+
# - "!intel_extension_for_transformers/neural_chat/docs/**"
45+
# - "!intel_extension_for_transformers/neural_chat/examples/**"
46+
# - "!intel_extension_for_transformers/neural_chat/assets/**"
47+
# - "!intel_extension_for_transformers/neural_chat/README.md"
48+
# checks:
49+
# - "neuralchat-unit-test-baseline"
50+
# - "neuralchat-unit-test-PR-test"
51+
# - "Generate-NeuralChat-Report"
52+
53+
- id: "Engine Unit Test workflow"
54+
paths:
55+
- ".github/workflows/unit-test-engine.yml"
56+
- "requirements.txt"
57+
- "setup.py"
58+
- intel_extension_for_transformers/transformers/**
59+
- "intel_extension_for_transformers/transformers/runtime/**"
60+
- "!intel_extension_for_transformers/transformers/runtime/kernels/**"
61+
- "!intel_extension_for_transformers/transformers/runtime/third_party/**"
62+
- "!intel_extension_for_transformers/transformers/runtime/docs/**"
63+
checks:
64+
- "engine-unit-test-baseline"
65+
- "engine-unit-test-PR-test"
66+
- "Genreate-Engine-Report"
3367

3468
# - id: "Windows Binary Test"
3569
# paths:

.github/workflows/script/unitTest/env_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pip list
22

3-
inc=$(pip list | grep -c 'neural-compressor') || true # Prevent from exiting when 'inc' not found
3+
inc=$(pip list | grep -c 'neural[-_]compressor') || true # Prevent from exiting when 'inc' not found
44
if [ ${inc} != 0 ]; then
55
pip uninstall neural-compressor -y
66
pip list

.github/workflows/unit-test-engine.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
engine-unit-test:
3636
runs-on: [self-hosted, linux, X64, itrex-node]
3737
strategy:
38+
fail-fast: true
3839
matrix:
3940
include:
4041
- test_branch: ${{ github.ref }}
@@ -62,7 +63,7 @@ jobs:
6263
with:
6364
submodules: "recursive"
6465
ref: ${{ matrix.test_branch }}
65-
fetch-tags: true
66+
fetch-depth: 0
6667

6768
- name: Docker Build
6869
run: |

.github/workflows/unit-test-neuralchat.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
neuralchat-unit-test:
4343
runs-on: [self-hosted, Linux, X64, itrex-node]
4444
strategy:
45+
fail-fast: true
4546
matrix:
4647
include:
4748
- test_branch: ${{ github.ref }}
@@ -69,7 +70,7 @@ jobs:
6970
with:
7071
submodules: "recursive"
7172
ref: ${{ matrix.test_branch }}
72-
fetch-tags: true
73+
fetch-depth: 0
7374

7475
- name: docker Build
7576
run: |

intel_extension_for_transformers/transformers/runtime/test/pytest/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
--extra-index-url https://download.pytorch.org/whl/cpu
22
accelerate
33
datasets
4+
git+https://github.com/huggingface/optimum-intel.git@50d867c13b22c22eda451ddb67bddb8159670f85
45
intel-extension-for-pytorch==2.3.0
56
intel-tensorflow==2.12.0
67
onnx

0 commit comments

Comments
 (0)