Skip to content

Commit 4b65e01

Browse files
sonichicorleroux
authored andcommitted
bump version to 0.2.8 (microsoft#1349)
* bump version to 0.2.8 * make import easier * redis
1 parent 43f2e51 commit 4b65e01

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

.github/workflows/build.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
python -m pip install --upgrade pip wheel
4040
pip install -e .
4141
python -c "import autogen"
42-
pip install -e. pytest mock
42+
pip install pytest mock
4343
- name: Set AUTOGEN_USE_DOCKER based on OS
4444
shell: bash
4545
run: |
@@ -53,8 +53,7 @@ jobs:
5353
- name: Coverage
5454
if: matrix.python-version == '3.10'
5555
run: |
56-
pip install -e .[test]
57-
pip install -e .[redis]
56+
pip install -e .[test,redis]
5857
coverage run -a -m pytest test --ignore=test/agentchat/contrib --skip-openai
5958
coverage xml
6059
- name: Upload coverage to Codecov

autogen/cache/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .cache import Cache
2+
3+
__all__ = ["Cache"]

autogen/cache/cache.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
from typing import Dict, Any
32

43
from autogen.cache.cache_factory import CacheFactory

autogen/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.7"
1+
__version__ = "0.2.8"

test/agentchat/test_cache_agent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pytest
66
import autogen
77
from autogen.agentchat import AssistantAgent, UserProxyAgent
8-
from autogen.cache.cache import Cache
8+
from autogen.cache import Cache
99

1010
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
1111
from conftest import skip_openai, skip_redis # noqa: E402

test/conftest.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import pytest
22

33
skip_openai = False
4+
skip_redis = False
45

56

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

1113

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

0 commit comments

Comments
 (0)