mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-17 17:02:03 -05:00
* Initial check-in of agbench * Moved agbench to intended directory. * Removed pyautogen dependency * moved to using process_until_idle * Added TeamOne template. * User TeamOne agent classes. * migrate to hatch, move benchmarks out, add CI (#166) * Resolve type issues (#168) Thanks for fixing types. * Fixed import. --------- Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
80 lines
2.0 KiB
YAML
80 lines
2.0 KiB
YAML
name: Checks
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
working-directory: ["./python", "./python/teams/team-one", "./python/tools/agbench"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run ruff format --check
|
|
working-directory: ${{ matrix.working-directory }}
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
working-directory: ["./python", "./python/teams/team-one", "./python/tools/agbench"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run ruff check
|
|
working-directory: ${{ matrix.working-directory }}
|
|
|
|
mypy:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
working-directory: ["./python", "./python/teams/team-one", "./python/tools/agbench"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run mypy
|
|
working-directory: ${{ matrix.working-directory }}
|
|
|
|
pyright:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
working-directory: ["./python", "./python/teams/team-one", "./python/tools/agbench"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run pyright
|
|
working-directory: ${{ matrix.working-directory }}
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run +python=${{ matrix.python-version }} test-matrix:pytest -n auto
|
|
working-directory: ./python
|
|
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run docs:check
|
|
working-directory: ./python
|