Skip to content

Commit

Permalink
Merge branch 'main' into cleanup-required-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
davorrunje authored Feb 21, 2025
2 parents 9968189 + 4693850 commit 4620ca3
Show file tree
Hide file tree
Showing 15 changed files with 307 additions and 280 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build docs

on:
workflow_call:
inputs:
python-version:
description: 'Python version to use'
required: true
default: '3.10'
type: string
node-version:
description: 'Node version to use'
required: true
default: '18.x'
type: string

jobs:
build-docs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: website
steps:
- uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 0
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
- uses: actions/setup-node@v4
with:
node-version: ${{ github.event.inputs.node-version }}
- name: setup python
uses: actions/setup-python@v5
with:
python-version: ${{ github.event.inputs.python-version }}

- name: Install quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Build documentation
run: |
uv venv
. .venv/bin/activate
uv pip install -e ".[docs]"
./scripts/docs_build.sh
working-directory: .

- name: Prepare website content
if: github.ref == 'refs/heads/main'
run: |
# Create a temporary directory for filtered content
mkdir -p temp_website
# Navigate to build directory
cd build
# Copy files except .ipynb, node_modules, .quarto, .gitignore, temp_website, _blogs, use-cases, user-guide and talks
find . -type f -not -path "*/node_modules/*" -not -path "*/.quarto/*" -not -path "./_blogs/*" -not -path "./use-cases/*" -not -path "./user-guide/*" -not -path "./talks/*" -not -name "*.ipynb" -not -name ".gitignore" -exec cp --parents {} ../temp_website/ \;
- name: Deploy to Mintlify
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: mintlify-pages
publish_dir: ./website/temp_website
4 changes: 4 additions & 0 deletions .github/workflows/contrib-llm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
- "test/agentchat/contrib/**"
- ".github/workflows/contrib-llm-test.yml"
- "pyproject.toml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: true
permissions:
{}

Expand Down
42 changes: 20 additions & 22 deletions .github/workflows/contrib-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ permissions:
jobs:
RetrieveChatTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -71,6 +72,7 @@ jobs:

RetrieveChatTest-Ubuntu:
runs-on: ubuntu-latest
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -194,6 +196,7 @@ jobs:
os: [ubuntu-latest]
python-version: ["3.10"]
runs-on: ${{ matrix.os }}
environment: permit-tests
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
Expand Down Expand Up @@ -222,6 +225,7 @@ jobs:

GPTAssistantAgent:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -261,6 +265,7 @@ jobs:

TeachableAgent:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -300,6 +305,7 @@ jobs:

WebSurfer:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -339,6 +345,7 @@ jobs:

LMMTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -384,6 +391,7 @@ jobs:

GeminiTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand All @@ -394,8 +402,6 @@ jobs:
python-version: "3.9"
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
Expand Down Expand Up @@ -428,6 +434,7 @@ jobs:

TransformMessages:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -467,6 +474,7 @@ jobs:

LlamaIndexAgent:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -501,6 +509,7 @@ jobs:

AnthropicTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand All @@ -509,8 +518,6 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
Expand Down Expand Up @@ -545,6 +552,7 @@ jobs:

CerebrasTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand All @@ -555,8 +563,6 @@ jobs:
python-version: "3.9"
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
Expand Down Expand Up @@ -589,6 +595,7 @@ jobs:

MistralTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand All @@ -599,8 +606,6 @@ jobs:
python-version: "3.9"
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
Expand Down Expand Up @@ -633,6 +638,7 @@ jobs:

TogetherTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand All @@ -643,8 +649,6 @@ jobs:
python-version: "3.9"
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
Expand Down Expand Up @@ -677,6 +681,7 @@ jobs:

GroqTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand All @@ -687,8 +692,6 @@ jobs:
python-version: "3.9"
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
Expand Down Expand Up @@ -721,14 +724,13 @@ jobs:

CohereTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
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"
Expand Down Expand Up @@ -761,6 +763,7 @@ jobs:

OllamaTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand All @@ -771,8 +774,6 @@ jobs:
python-version: "3.9"
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
Expand Down Expand Up @@ -805,6 +806,7 @@ jobs:

BedrockTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand All @@ -815,8 +817,6 @@ jobs:
python-version: "3.9"
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
Expand Down Expand Up @@ -849,6 +849,7 @@ jobs:

SwarmTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand All @@ -859,8 +860,6 @@ jobs:
python-version: "3.9"
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
Expand Down Expand Up @@ -893,6 +892,7 @@ jobs:

ReasoningTest:
runs-on: ${{ matrix.os }}
environment: permit-tests
strategy:
fail-fast: false
matrix:
Expand All @@ -903,8 +903,6 @@ jobs:
python-version: "3.9"
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/core-llm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
- "notebook/agentchat_groupchat_finite_state_machine.ipynb"
- ".github/workflows/core-llm-test.yml"
- "pyproject.toml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: true
permissions:
{}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
needs: paths-filter
if: needs.paths-filter.outputs.hasChanges == 'true'
runs-on: ${{ matrix.os }}
environment: permit-tests
env:
AUTOGEN_USE_DOCKER: ${{ matrix.os != 'ubuntu-latest' && 'False' }}
strategy:
Expand Down
Loading

0 comments on commit 4620ca3

Please sign in to comment.