File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -68,20 +68,40 @@ jobs:
68
68
run : |
69
69
python3 -m spacy download en_core_web_sm
70
70
71
- - name : Unit Tests
71
+ - name : Normal Unit Tests
72
72
timeout-minutes : 30
73
73
shell : bash
74
74
working-directory : tests
75
75
run : |
76
76
export IS_CI=true
77
77
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
78
- python3 -m pytest ./
78
+ python3 -m pytest -k "not embedding and not processor" ./
79
+
80
+ - name : Embedding Unit Tests
81
+ timeout-minutes : 30
82
+ shell : bash
83
+ working-directory : tests
84
+ run : |
85
+ export IS_CI=true
86
+ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
87
+ python3 -m pytest ./unit_tests/embedding/
88
+
89
+ - name : Processor Unit Tests
90
+ timeout-minutes : 30
91
+ shell : bash
92
+ working-directory : tests
93
+ run : |
94
+ export IS_CI=true
95
+ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
96
+ python3 -m pytest ./unit_tests/processor/
79
97
80
98
- name : Generate coverage report
81
99
run : |
82
100
rm -rf ./coverage.xml
83
101
coverage erase
84
- coverage run --source=gptcache -m pytest ./tests
102
+ coverage run --source=gptcache -m pytest -k "not embedding and not processor" ./tests
103
+ coverage run --source=gptcache -m pytest ./tests/unit_tests/embedding/
104
+ coverage run --source=gptcache -m pytest ./tests/unit_tests/processor/
85
105
coverage xml
86
106
87
107
- name : Upload coverage to Codecov
Original file line number Diff line number Diff line change @@ -21,4 +21,6 @@ pexpect
21
21
spacy
22
22
safetensors
23
23
typing_extensions < 4.6.0
24
+ stability-sdk
25
+ grpcio == 1.53.0
24
26
protobuf == 3.20.0
You can’t perform that action at this time.
0 commit comments