Skip to content

Commit

Permalink
fix lmm
Browse files Browse the repository at this point in the history
  • Loading branch information
WaelKarkoub committed Apr 28, 2024
1 parent b379c1e commit be36a57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/contrib-openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
run: |
pytest -k test/agentchat/contrib/retrievechat/ test/agentchat/contrib/retrievechat
pytest test/agentchat/contrib/retrievechat/ test/agentchat/contrib/retrievechat
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/contrib-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,11 @@ jobs:
fi
- name: Coverage
run: |
pytest test/agentchat/contrib/test_img_utils.py test/agentchat/contrib/test_lmm.py test/agentchat/contrib/test_llava.py test/agentchat/contrib/capabilities/test_image_generation_capability.py test/agentchat/contrib/capabilities/test_vision_capability.py --skip-openai
pytest test/agentchat/contrib/test_img_utils.py test/agentchat/contrib/test_lmm.py test/agentchat/contrib/test_llava.py test/agentchat/contrib/capabilities/test_vision_capability.py --skip-openai
- name: Image Gen Coverage
if: ${{ matrix.os != 'windows-2019' && matrix.python-version != '3.12' }}
run: |
pytest test/agentchat/contrib/capabilities/test_image_generation_capability.py --skip-openai
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ def test_image_generation_capability_negative(monkeypatch, image_gen_capability)
@pytest.mark.skipif(skip_requirement, reason="Dependencies are not installed.")
def test_image_generation_capability_cache(monkeypatch):
"""Tests ImageGeneration capability to cache the generated images."""
if sys.platform == "win32" and sys.version_info == (3, 12):
pytest.skip("Skipping test on Windows with Python 3.12")

test_image_size = (256, 256)

# Patching the _should_generate_image and _extract_prompt methods to avoid TextAnalyzerAgent making API calls.
Expand Down

0 comments on commit be36a57

Please sign in to comment.