modify wording in doc #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Contrib tests without LLMs | |
on: | |
pull_request: | |
branches: ["main"] | |
paths: | |
- "autogen/**" | |
- "test/agentchat/contrib/**" | |
- "test/test_browser_utils.py" | |
- "test/test_retrieve_utils.py" | |
- ".github/workflows/contrib-tests.yml" | |
- "pyproject.toml" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
permissions: | |
{} | |
# actions: read | |
# checks: read | |
# contents: read | |
# deployments: read | |
jobs: | |
RetrieveChatTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install qdrant_client when python-version is 3.10 | |
if: matrix.python-version == '3.10' | |
run: | | |
uv pip install --system -e .[retrievechat-qdrant] | |
- name: Install packages and dependencies for RetrieveChat | |
run: | | |
uv pip install --system -e .[retrievechat] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/test_retrieve_utils.py test/agentchat/contrib/retrievechat/test_retrievechat.py test/agentchat/contrib/retrievechat/test_qdrant_retrievechat.py test/agentchat/contrib/vectordb | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
RetrieveChatTest-Ubuntu: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
services: | |
pgvector: | |
image: ankane/pgvector | |
env: | |
POSTGRES_DB: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} | |
POSTGRES_HOST_AUTH_METHOD: trust | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
mongodb: | |
image: mongodb/mongodb-atlas-local:latest | |
ports: | |
- 27017:27017 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest | |
- name: Install qdrant_client when python-version is 3.10 | |
if: matrix.python-version == '3.10' | |
run: | | |
uv pip install --system -e .[retrievechat-qdrant] | |
- name: Install pgvector when on linux | |
run: | | |
uv pip install --system -e .[retrievechat-pgvector] | |
- name: Install mongodb when on linux | |
run: | | |
uv pip install --system -e .[retrievechat-mongodb] | |
- name: Install unstructured when python-version is 3.9 and on linux | |
if: matrix.python-version == '3.9' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y tesseract-ocr poppler-utils | |
uv pip install --system --no-cache-dir unstructured[all-docs]==0.13.0 | |
- name: Install packages and dependencies for RetrieveChat | |
run: | | |
uv pip install --system -e .[retrievechat] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
- name: Coverage | |
run: | | |
uv pip install --system pytest-cov>=5 | |
bash scripts/test-skip-llm.sh test/test_retrieve_utils.py test/agentchat/contrib/retrievechat test/agentchat/contrib/vectordb | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
AgentEvalTest: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.10"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for AgentEval | |
run: | | |
uv pip install --system -e . | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/agentchat/contrib/agent_eval/ | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
GPTAssistantAgent: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for GPTAssistantAgent | |
run: | | |
uv pip install --system -e . | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/agentchat/contrib/test_gpt_assistant.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
TeachableAgent: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Teachability | |
run: | | |
uv pip install --system -e .[teachable] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/agentchat/contrib/capabilities/test_teachable_agent.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
WebSurfer: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for WebSurfer | |
run: | | |
uv pip install --system -e .[websurfer] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/test_browser_utils.py test/agentchat/contrib/test_web_surfer.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
LMMTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for LMM | |
run: | | |
uv pip install --system -e .[lmm] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/agentchat/contrib/test_img_utils.py test/agentchat/contrib/test_lmm.py test/agentchat/contrib/test_llava.py test/agentchat/contrib/capabilities/test_vision_capability.py | |
- name: Image Gen Coverage | |
if: ${{ matrix.os != 'windows-latest' && matrix.python-version != '3.13' }} | |
run: | | |
bash scripts/test-skip-llm.sh test/agentchat/contrib/capabilities/test_image_generation_capability.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
GeminiTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Gemini | |
run: | | |
uv pip install --system -e .[gemini,test] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/oai/test_gemini.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
TransformMessages: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Transform Messages | |
run: | | |
uv pip install --system -e '.[long-context]' | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/agentchat/contrib/capabilities/test_transform_messages.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittest | |
LlamaIndexAgent: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for LlamaIndexConverableAgent | |
run: | | |
uv pip install --system -e . | |
uv pip install --system llama-index llama-index-llms-openai | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/agentchat/contrib/test_llamaindex_conversable_agent.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
AnthropicTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Anthropic | |
run: | | |
uv pip install --system -e .[anthropic,test] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/oai/test_anthropic.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
CerebrasTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Cerebras | |
run: | | |
uv pip install --system -e .[cerebras_cloud_sdk,test] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/oai/test_cerebras.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
MistralTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Mistral | |
run: | | |
uv pip install --system -e .[mistral,test] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/oai/test_mistral.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
TogetherTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Together | |
run: | | |
uv pip install --system -e .[together,test] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/oai/test_together.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
GroqTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Groq | |
run: | | |
uv pip install --system -e .[groq,test] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/oai/test_groq.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
CohereTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Cohere | |
run: | | |
uv pip install --system -e .[cohere,test] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/oai/test_cohere.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
OllamaTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Ollama | |
run: | | |
uv pip install --system -e .[ollama,test] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/oai/test_ollama.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
BedrockTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Amazon Bedrock | |
run: | | |
uv pip install --system -e .[boto3,test] | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/oai/test_bedrock.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
SwarmTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Swarms | |
run: | | |
uv pip install --system -e . | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/agentchat/contrib/test_swarm.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
ReasoningTest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages and dependencies for all tests | |
run: | | |
uv pip install --system pytest-cov>=5 | |
- name: Install packages and dependencies for Reasoning | |
run: | | |
uv pip install --system -e . | |
- name: Install Graphviz based on OS | |
run: | | |
if [[ ${{ matrix.os }} == 'ubuntu-latest' ]]; then | |
sudo apt-get update | |
sudo apt-get install -y graphviz | |
elif [[ ${{ matrix.os }} == 'macos-latest' ]]; then | |
brew install graphviz | |
elif [[ ${{ matrix.os }} == 'windows-latest' ]]; then | |
choco install graphviz | |
fi | |
shell: bash | |
- name: Set AUTOGEN_USE_DOCKER based on OS | |
shell: bash | |
run: | | |
if [[ ${{ matrix.os }} != ubuntu-latest ]]; then | |
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV | |
fi | |
- name: Coverage | |
run: | | |
bash scripts/test-skip-llm.sh test/agentchat/contrib/test_reasoning_agent.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests |