CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.
Python agent-frameworkagent-harnessagent-runtimeagentic-aiai-agentsai-frameworkanthropicharnessharness-engineeringharness-frameworklanggraphlanggraph-alternativellmmcpopenaipi-agentpi-agent-corepythonpython-agent
fix: resolve unawaited coroutine warning in hook tests and add badges
xf gongde61d8084351
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 5b3f280..b841537 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -27,7 +27,14 @@ jobs:run: uv sync --all-extras --dev- name: Run tests- run: uv run pytest tests/ -v --cov=cubepi --cov-report=term-missing+ run: uv run pytest tests/ -v --cov=cubepi --cov-report=term-missing --cov-report=xml++ - name: Upload coverage to Codecov+ if: matrix.python-version == '3.13'+ uses: codecov/codecov-action@v5+ with:+ files: coverage.xml+ fail_ci_if_error: false- name: Check importrun: uv run python -c "import cubepi; print(cubepi.__all__)"diff --git a/README.md b/README.mdindex 7611646..2a010e2 100644--- a/README.md+++ b/README.md@@ -1,5 +1,11 @@# cubepi+[](https://github.com/cubeplexai/cubepi/actions/workflows/ci.yml)+[](https://codecov.io/gh/cubeplexai/cubepi)+[](https://pypi.org/project/cubepi/)+[](https://pypi.org/project/cubepi/)+[](https://opensource.org/licenses/MIT)+Pythonic async-native agent framework. Built to replace [langgraph](https://github.com/langchain-ai/langgraph) with something simpler, faster, and easier to reason about.Inspired by [pi-agent-core](https://github.com/anthropics/pi-agent-core) (TypeScript), redesigned for Python.diff --git a/tests/providers/test_hooks.py b/tests/providers/test_hooks.pyindex cb63f26..93a040e 100644--- a/tests/providers/test_hooks.py+++ b/tests/providers/test_hooks.py@@ -155,6 +155,7 @@ class TestAnthropicProviderHooks:mock_stream.__aenter__ = AsyncMock(return_value=mock_stream)mock_stream.__aexit__ = AsyncMock(return_value=False)mock_stream.__aiter__ = MagicMock(return_value=iter([]))+ mock_stream.response = MagicMock(status_code=200, headers={})final_msg = MagicMock()final_msg.content = [MagicMock(type="text", text="hello")]@@ -204,6 +205,7 @@ class TestAnthropicProviderHooks:mock_stream.__aenter__ = AsyncMock(return_value=mock_stream)mock_stream.__aexit__ = AsyncMock(return_value=False)mock_stream.__aiter__ = MagicMock(return_value=iter([]))+ mock_stream.response = MagicMock(status_code=200, headers={})final_msg = MagicMock()final_msg.content = [MagicMock(type="text", text="ok")]