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
29 changes: 29 additions & 0 deletions .github/workflows/test_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,35 @@ jobs:
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/ibm/watsonx

# Run tests for Cerebras
test-cerebras:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
fail-fast: true # Stop all matrix jobs if one fails
env:
CEREBRAS_API_KEY: ${{ secrets.CEREBRAS_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
working-directory: .
run: |
./scripts/dev_setup.sh
- name: Run Cerebras tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/cerebras

test-deepinfra:
runs-on: ubuntu-latest
strategy:
Expand Down
12 changes: 6 additions & 6 deletions libs/agno/tests/integration/models/cerebras/test_tool_use.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

from agno.agent import Agent, RunResponse # noqa
from agno.models.cerebras import Cerebras
from agno.tools.googlesearch import GoogleSearchTools
from agno.tools.duckduckgo import DuckDuckGoTools


def test_tool_use():
agent = Agent(
model=Cerebras(id="llama-4-scout-17b-16e-instruct"),
tools=[GoogleSearchTools(cache_results=True)],
tools=[DuckDuckGoTools(cache_results=True)],
show_tool_calls=True,
telemetry=False,
monitoring=False,
Expand All @@ -25,7 +25,7 @@ def test_tool_use():
def test_tool_use_stream():
agent = Agent(
model=Cerebras(id="llama-4-scout-17b-16e-instruct"),
tools=[GoogleSearchTools(cache_results=True)],
tools=[DuckDuckGoTools(cache_results=True)],
show_tool_calls=True,
telemetry=False,
monitoring=False,
Expand All @@ -52,7 +52,7 @@ def test_tool_use_stream():
async def test_async_tool_use():
agent = Agent(
model=Cerebras(id="llama-4-scout-17b-16e-instruct"),
tools=[GoogleSearchTools(cache_results=True)],
tools=[DuckDuckGoTools(cache_results=True)],
show_tool_calls=True,
telemetry=False,
monitoring=False,
Expand All @@ -70,7 +70,7 @@ async def test_async_tool_use():
async def test_async_tool_use_stream():
agent = Agent(
model=Cerebras(id="llama-4-scout-17b-16e-instruct"),
tools=[GoogleSearchTools(cache_results=True)],
tools=[DuckDuckGoTools(cache_results=True)],
show_tool_calls=True,
telemetry=False,
monitoring=False,
Expand All @@ -96,7 +96,7 @@ async def test_async_tool_use_stream():
def test_tool_use_with_content():
agent = Agent(
model=Cerebras(id="llama-4-scout-17b-16e-instruct"),
tools=[GoogleSearchTools(cache_results=True)],
tools=[DuckDuckGoTools(cache_results=True)],
show_tool_calls=True,
telemetry=False,
monitoring=False,
Expand Down
Loading