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
154 changes: 35 additions & 119 deletions .github/workflows/test_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,10 @@ jobs:
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 OpenAI tests
- name: Run dev setup and OpenAI tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/openai
./scripts/run_model_tests.sh openai

# Run tests for Google
test-google:
Expand All @@ -93,15 +88,10 @@ jobs:
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
- name: Run dev setup and Google tests
working-directory: .
run: |
./scripts/dev_setup.sh
- name: Run Google tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/google
./scripts/run_model_tests.sh google

# Run tests for Anthropic
test-anthropic:
Expand All @@ -123,15 +113,10 @@ jobs:
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
- name: Run dev setup and Anthropic tests
working-directory: .
run: |
./scripts/dev_setup.sh
- name: Run Anthropic tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/anthropic
./scripts/run_model_tests.sh anthropic

# Run tests for AWS
test-aws:
Expand All @@ -155,15 +140,10 @@ jobs:
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
- name: Run dev setup and AWS tests
working-directory: .
run: |
./scripts/dev_setup.sh
- name: Run AWS tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/aws
./scripts/run_model_tests.sh aws

# Run tests for Cohere
test-cohere:
Expand All @@ -186,15 +166,10 @@ jobs:
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
- name: Run dev setup and Cohere tests
working-directory: .
run: |
./scripts/dev_setup.sh
- name: Run Cohere tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/cohere
./scripts/run_model_tests.sh cohere

# Run tests for Deepseek
test-deepseek:
Expand All @@ -215,15 +190,10 @@ jobs:
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
- name: Run dev setup and Deepseek tests
working-directory: .
run: |
./scripts/dev_setup.sh
- name: Run Deepseek tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/deepseek
./scripts/run_model_tests.sh deepseek

# Run tests for Fireworks
test-fireworks:
Expand Down Expand Up @@ -276,15 +246,10 @@ jobs:
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
- name: Run dev setup and Groq tests
working-directory: .
run: |
./scripts/dev_setup.sh
- name: Run Groq tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/groq
./scripts/run_model_tests.sh groq

# Run tests for Mistral
test-mistral:
Expand All @@ -306,15 +271,10 @@ jobs:
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 Mistral tests
- name: Run dev setup and Mistral tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/mistral
./scripts/run_model_tests.sh mistral

# Run tests for Nvidia
test-nvidia:
Expand All @@ -336,15 +296,11 @@ jobs:
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 Nvidia tests
- name: Run dev setup and Nvidia tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/nvidia
./scripts/run_model_tests.sh nvidia

# Run tests for OpenRouter
test-openrouter:
if: false # Disable openrouter tests until we get a test account
Expand All @@ -366,15 +322,10 @@ jobs:
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
- name: Run dev setup and OpenRouter tests
working-directory: .
run: |
./scripts/dev_setup.sh
- name: Run OpenRouter tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/openrouter
./scripts/run_model_tests.sh openrouter

# Run tests for Perplexity
test-perplexity:
Expand All @@ -396,15 +347,10 @@ jobs:
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 Perplexity tests
- name: Run dev setup and Perplexity tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/perplexity
./scripts/run_model_tests.sh perplexity

# Run tests for SambaNova
test-sambanova:
Expand All @@ -425,15 +371,10 @@ jobs:
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 SambaNova tests
- name: Run dev setup and SambaNova tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/sambanova
./scripts/run_model_tests.sh sambanova

# Run tests for Together
test-together:
Expand All @@ -456,15 +397,10 @@ jobs:
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 Together tests
- name: Run dev setup and Together tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/together
./scripts/run_model_tests.sh together

# Run tests for xAI
test-xai:
Expand All @@ -486,15 +422,10 @@ jobs:
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 xAI tests
- name: Run dev setup and XAI tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/xai
./scripts/run_model_tests.sh xai

test-ibm-watsonx:
if: false # Our account is not working
Expand All @@ -518,15 +449,10 @@ jobs:
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
- name: Run dev setup and IBM-WatsonX tests
working-directory: .
run: |
./scripts/dev_setup.sh
- name: Run xAI tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/ibm/watsonx
./scripts/run_model_tests.sh ibm

# Run tests for Cerebras
test-cerebras:
Expand All @@ -547,15 +473,10 @@ jobs:
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
- name: Run dev setup and Cerebras tests
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
./scripts/run_model_tests.sh cerebras

test-deepinfra:
runs-on: ubuntu-latest
Expand All @@ -576,15 +497,10 @@ jobs:
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
- name: Run dev setup and Deepinfra tests
working-directory: .
run: |
./scripts/dev_setup.sh
- name: Run DeepInfra tests
working-directory: .
run: |
source .venv/bin/activate
python -m pytest ./libs/agno/tests/integration/models/deepinfra
./scripts/run_model_tests.sh deepinfra

test-agents:
runs-on: ubuntu-latest
Expand Down
11 changes: 10 additions & 1 deletion libs/agno/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ dependencies = [
[project.optional-dependencies]
dev = ["mypy", "pytest", "pytest-asyncio", "pytest-cov", "pytest-mock", "ruff", "timeout-decorator", "types-pyyaml", "types-aiofiles", "fastapi", "uvicorn", "arxiv"]

# Models integration test dependencies
integration-tests = [
"exa_py",
"duckduckgo-search",
"yfinance",
"sqlalchemy",
"Pillow",
]

# Dependencies for Telemetry
opentelemetry = ["opentelemetry-sdk", "opentelemetry-exporter-otlp"]
weave = ["weave"]
Expand Down Expand Up @@ -371,4 +380,4 @@ module = [
"youtube_transcript_api.*",
"zep_cloud.*"
]
ignore_missing_imports = true
ignore_missing_imports = true
Loading
Loading