mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-08 10:25:09 -05:00
* Add speaker selection methods * Update groupchat RAG * Update seed to cache_seed * Update RetrieveChat notebook * Update parameter name * Add test * Add more tests * Add mock to test * Add mock to test * Fix typo speaking * Add gracefully exit manual input * Update round_robin docstring * Add method checking * Remove participant roles * Fix versions in notebooks * Minimize installation overhead * Fix missing lower() * Add comments for try_count 3 * Update warning for n_agents < 3 * Update warning for n_agents < 3 * Add test_n_agents_less_than_3 * Add a function for manual select * Update version in notebooks * Fixed bugs that allow speakers to go twice in a row even when allow_repeat_speaker = False --------- Co-authored-by: Adam Fourney <adamfo@microsoft.com>
66 lines
2.0 KiB
YAML
66 lines
2.0 KiB
YAML
# 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: Build
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
paths:
|
|
- 'autogen/**'
|
|
- 'test/**'
|
|
- '.github/workflows/build.yml'
|
|
- 'setup.py'
|
|
pull_request:
|
|
branches: ['main']
|
|
merge_group:
|
|
types: [checks_requested]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-2019]
|
|
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
|
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 packages and dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip wheel
|
|
pip install -e .
|
|
python -c "import autogen"
|
|
pip install -e. pytest mock
|
|
pip uninstall -y openai
|
|
- name: Install unstructured if not windows
|
|
if: matrix.os != 'windows-2019'
|
|
run: |
|
|
pip install "unstructured[all-docs]"
|
|
- name: Test with pytest
|
|
if: matrix.python-version != '3.10'
|
|
run: |
|
|
pytest test
|
|
- name: Coverage
|
|
if: matrix.python-version == '3.10'
|
|
run: |
|
|
pip install -e .[mathchat,test]
|
|
pip uninstall -y openai
|
|
coverage run -a -m pytest test --ignore=test/agentchat/contrib
|
|
coverage xml
|
|
- name: Upload coverage to Codecov
|
|
if: matrix.python-version == '3.10'
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
file: ./coverage.xml
|
|
flags: unittests
|