Skip to content

Commit

Permalink
bump version to 0.2.8 (#1349)
Browse files Browse the repository at this point in the history
* bump version to 0.2.8

* make import easier

* redis
  • Loading branch information
sonichi authored Jan 22, 2024
1 parent 708eb4d commit 05923a7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
python -m pip install --upgrade pip wheel
pip install -e .
python -c "import autogen"
pip install -e. pytest mock
pip install pytest mock
- name: Set AUTOGEN_USE_DOCKER based on OS
shell: bash
run: |
Expand All @@ -53,8 +53,7 @@ jobs:
- name: Coverage
if: matrix.python-version == '3.10'
run: |
pip install -e .[test]
pip install -e .[redis]
pip install -e .[test,redis]
coverage run -a -m pytest test --ignore=test/agentchat/contrib --skip-openai
coverage xml
- name: Upload coverage to Codecov
Expand Down
3 changes: 3 additions & 0 deletions autogen/cache/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .cache import Cache

__all__ = ["Cache"]
1 change: 0 additions & 1 deletion autogen/cache/cache.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
from typing import Dict, Any

from autogen.cache.cache_factory import CacheFactory
Expand Down
2 changes: 1 addition & 1 deletion autogen/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.7"
__version__ = "0.2.8"
2 changes: 1 addition & 1 deletion test/agentchat/test_cache_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest
import autogen
from autogen.agentchat import AssistantAgent, UserProxyAgent
from autogen.cache.cache import Cache
from autogen.cache import Cache

sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
from conftest import skip_openai, skip_redis # noqa: E402
Expand Down
8 changes: 5 additions & 3 deletions test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import pytest

skip_openai = False
skip_redis = False


# Registers command-line option '--skip-openai' via pytest hook.
# When this flag is set, it indicates that tests requiring OpenAI should be skipped.
# Registers command-line option '--skip-openai' and '--skip-redis' via pytest hook.
# When these flags are set, it indicates that tests requiring OpenAI or Redis (respectively) should be skipped.
def pytest_addoption(parser):
parser.addoption("--skip-openai", action="store_true", help="Skip all tests that require openai")
parser.addoption("--skip-redis", action="store_true", help="Skip all tests that require redis")


# pytest hook implementation extracting the '--skip-openai' command line arg and exposing it globally
# pytest hook implementation extracting the '--skip-openai' and '--skip-redis' command line arg and exposing it globally
@pytest.hookimpl(tryfirst=True)
def pytest_configure(config):
global skip_openai
Expand Down

0 comments on commit 05923a7

Please sign in to comment.