mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-08 18:35:02 -05:00
* code executor * test * revert to main conversable agent * prepare for pr * kernel * run open ai tests only when it's out of draft status * update workflow file * revert workflow changes * ipython executor * check kernel installed; fix tests * fix tests * fix tests * update system prompt * Update notebook, more tests * notebook * raise instead of return None * allow user provided code executor. * fixing types * wip * refactoring * polishing * fixed failing tests * resolved merge conflict * fixing failing test * wip * local command line executor and embedded ipython executor * revert notebook * fix format * fix merged error * fix lmm test * fix lmm test * move warning * name and description should be part of the agent protocol, reset is not as it is only used for ConversableAgent; removing accidentally commited file * version for dependency * Update autogen/agentchat/conversable_agent.py Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com> * ordering of protocol * description * fix tests * make ipython executor dependency optional * update document optional dependencies * Remove exclude from Agent protocol * Make ConversableAgent consistent with Agent * fix tests * add doc string * add doc string * fix notebook * fix interface * merge and update agents * disable config usage in reply function * description field setter * customize system message update * update doc --------- Co-authored-by: Davor Runje <davor@airt.ai> Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com> Co-authored-by: Aaron <aaronlaptop12@hotmail.com> Co-authored-by: Chi Wang <wang.chi@microsoft.com>
73 lines
2.4 KiB
YAML
73 lines
2.4 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' }}
|
|
permissions: {}
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
AUTOGEN_USE_DOCKER: ${{ matrix.os != 'ubuntu-latest' && 'False' }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
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 pytest mock
|
|
pip install jupyter-client ipykernel
|
|
python -m ipykernel install --user --name python3
|
|
- 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: Test with pytest skipping openai tests
|
|
if: matrix.python-version != '3.10' && matrix.os == 'ubuntu-latest'
|
|
run: |
|
|
pytest test --skip-openai
|
|
- name: Test with pytest skipping openai and docker tests
|
|
if: matrix.python-version != '3.10' && matrix.os != 'ubuntu-latest'
|
|
run: |
|
|
pytest test --skip-openai --skip-docker
|
|
- name: Coverage
|
|
if: matrix.python-version == '3.10'
|
|
run: |
|
|
pip install -e .[test,redis]
|
|
coverage run -a -m pytest test --ignore=test/agentchat/contrib --skip-openai
|
|
coverage xml
|
|
- name: Upload coverage to Codecov
|
|
if: matrix.python-version == '3.10'
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
file: ./coverage.xml
|
|
flags: unittests
|