61
61
with :
62
62
file : ./coverage.xml
63
63
flags : unittests
64
+
64
65
CompressionTest :
65
66
runs-on : ${{ matrix.os }}
66
67
strategy :
83
84
pip install -e .
84
85
pip uninstall -y openai
85
86
- name : Test Compression
86
- if : matrix.python-version != '3.10'
87
+ if : matrix.python-version != '3.10' # diversify the python versions
87
88
run : |
88
89
pytest test/agentchat/contrib/test_compressible_agent.py
90
+ - name : Coverage
91
+ if : matrix.python-version == '3.10'
92
+ run : |
93
+ pip install coverage>=5.3
94
+ coverage run -a -m pytest test/agentchat/contrib/test_compressible_agent.py
95
+ coverage xml
96
+ - name : Upload coverage to Codecov
97
+ if : matrix.python-version == '3.10'
98
+ uses : codecov/codecov-action@v3
99
+ with :
100
+ file : ./coverage.xml
101
+ flags : unittests
89
102
90
103
GPTAssistantAgent :
91
104
runs-on : ${{ matrix.os }}
@@ -109,8 +122,21 @@ jobs:
109
122
pip install -e .
110
123
pip uninstall -y openai
111
124
- name : Test GPTAssistantAgent
125
+ if : matrix.python-version != '3.11' # diversify the python versions
112
126
run : |
113
127
pytest test/agentchat/contrib/test_gpt_assistant.py
128
+ - name : Coverage
129
+ if : matrix.python-version == '3.11'
130
+ run : |
131
+ pip install coverage>=5.3
132
+ coverage run -a -m pytest test/agentchat/contrib/test_gpt_assistant.py
133
+ coverage xml
134
+ - name : Upload coverage to Codecov
135
+ if : matrix.python-version == '3.11'
136
+ uses : codecov/codecov-action@v3
137
+ with :
138
+ file : ./coverage.xml
139
+ flags : unittests
114
140
115
141
TeachableAgent :
116
142
runs-on : ${{ matrix.os }}
@@ -134,5 +160,55 @@ jobs:
134
160
pip install -e .[teachable]
135
161
pip uninstall -y openai
136
162
- name : Test TeachableAgent
163
+ if : matrix.python-version != '3.9' # diversify the python versions
137
164
run : |
138
165
pytest test/agentchat/contrib/test_teachable_agent.py
166
+ - name : Coverage
167
+ if : matrix.python-version == '3.9'
168
+ run : |
169
+ pip install coverage>=5.3
170
+ coverage run -a -m pytest test/agentchat/contrib/test_teachable_agent.py
171
+ coverage xml
172
+ - name : Upload coverage to Codecov
173
+ if : matrix.python-version == '3.9'
174
+ uses : codecov/codecov-action@v3
175
+ with :
176
+ file : ./coverage.xml
177
+ flags : unittests
178
+
179
+ LMMTest :
180
+ runs-on : ${{ matrix.os }}
181
+ strategy :
182
+ fail-fast : false
183
+ matrix :
184
+ os : [ubuntu-latest, macos-latest, windows-2019]
185
+ python-version : ["3.8", "3.9", "3.10", "3.11"]
186
+ steps :
187
+ - uses : actions/checkout@v3
188
+ - name : Set up Python ${{ matrix.python-version }}
189
+ uses : actions/setup-python@v4
190
+ with :
191
+ python-version : ${{ matrix.python-version }}
192
+ - name : Install packages and dependencies for all tests
193
+ run : |
194
+ python -m pip install --upgrade pip wheel
195
+ pip install pytest
196
+ - name : Install packages and dependencies for LMM
197
+ run : |
198
+ pip install -e .[lmm]
199
+ pip uninstall -y openai
200
+ - name : Test LMM and LLaVA
201
+ run : |
202
+ pytest test/agentchat/contrib/test_img_utils.py test/agentchat/contrib/test_lmm.py test/agentchat/contrib/test_llava.py
203
+ - name : Coverage
204
+ if : matrix.python-version == '3.10'
205
+ run : |
206
+ pip install coverage>=5.3
207
+ coverage run -a -m pytest test/agentchat/contrib/test_img_utils.py test/agentchat/contrib/test_lmm.py test/agentchat/contrib/test_llava.py
208
+ coverage xml
209
+ - name : Upload coverage to Codecov
210
+ if : matrix.python-version == '3.10'
211
+ uses : codecov/codecov-action@v3
212
+ with :
213
+ file : ./coverage.xml
214
+ flags : unittests
0 commit comments