Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 import
run: uv run python -c "import cubepi; print(cubepi.__all__)"
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# cubepi

[![CI](https://github.com/cubeplexai/cubepi/actions/workflows/ci.yml/badge.svg)](https://github.com/cubeplexai/cubepi/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/cubeplexai/cubepi/graph/badge.svg)](https://codecov.io/gh/cubeplexai/cubepi)
[![PyPI](https://img.shields.io/pypi/v/cubepi)](https://pypi.org/project/cubepi/)
[![Python](https://img.shields.io/pypi/pyversions/cubepi)](https://pypi.org/project/cubepi/)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](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.
Expand Down
2 changes: 2 additions & 0 deletions tests/providers/test_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def on_payload(payload: dict, model: Model) -> None:
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")]
Expand Down Expand Up @@ -204,6 +205,7 @@ def on_payload(payload: dict, model: Model) -> dict:
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")]
Expand Down
Loading