A programming framework for agentic AI
bump version to 0.2.8 (#1349)
Chi Wang05923a7301f0
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 66a388622..d809f8bd7 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -39,7 +39,7 @@ jobs:python -m pip install --upgrade pip wheelpip install -e .python -c "import autogen"- pip install -e. pytest mock+ pip install pytest mock- name: Set AUTOGEN_USE_DOCKER based on OSshell: bashrun: |@@ -53,8 +53,7 @@ jobs:- name: Coverageif: 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-openaicoverage xml- name: Upload coverage to Codecovdiff --git a/autogen/cache/__init__.py b/autogen/cache/__init__.pyindex e69de29bb..0eb8cfa71 100644--- a/autogen/cache/__init__.py+++ b/autogen/cache/__init__.py@@ -0,0 +1,3 @@+from .cache import Cache++__all__ = ["Cache"]diff --git a/autogen/cache/cache.py b/autogen/cache/cache.pyindex fbcfb9a9f..d20aadef9 100644--- a/autogen/cache/cache.py+++ b/autogen/cache/cache.py@@ -1,4 +1,3 @@-import osfrom typing import Dict, Anyfrom autogen.cache.cache_factory import CacheFactorydiff --git a/autogen/version.py b/autogen/version.pyindex 6cd38b746..c49a95c35 100644--- a/autogen/version.py+++ b/autogen/version.py@@ -1 +1 @@-__version__ = "0.2.7"+__version__ = "0.2.8"diff --git a/test/agentchat/test_cache_agent.py b/test/agentchat/test_cache_agent.pyindex deb5e3779..8da9a919f 100644--- a/test/agentchat/test_cache_agent.py+++ b/test/agentchat/test_cache_agent.py@@ -5,7 +5,7 @@ import timeimport pytestimport autogenfrom autogen.agentchat import AssistantAgent, UserProxyAgent-from autogen.cache.cache import Cache+from autogen.cache import Cachesys.path.append(os.path.join(os.path.dirname(__file__), ".."))from conftest import skip_openai, skip_redis # noqa: E402diff --git a/test/conftest.py b/test/conftest.pyindex fd65decce..999261540 100644--- a/test/conftest.py+++ b/test/conftest.py@@ -1,15 +1,17 @@import pytestskip_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