mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-12 11:25:30 -05:00
* done * update docs * try fix * update workflows * undo minor fix * resolve comments * adds back pytest-asyncio * minor fix * add branch coverage * restore pip install e. * test with coverage * fix mypy * fix coverage + docker + windows combo * fix bash command * formatter * formatter * one last fix * I lied, last fix * fix * fix retrieve chat test * fix windows paths * change cache seed * down grade openai version * fix openai mypy * better error type * fix image gen cache test * fix * experimenting * fix lmm * skip cosmos test * remove cosmos db * unused imports * handle more cosmosdb skips * fix flaky test
50 lines
1.6 KiB
YAML
50 lines
1.6 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: SamplesToolsTests
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ["main"]
|
|
paths:
|
|
- "autogen/**"
|
|
- "samples/tools/**"
|
|
- ".github/workflows/samples-tools-tests.yml"
|
|
- "setup.py"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
permissions: {}
|
|
jobs:
|
|
SamplesToolsFineTuningTests:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
python-version: ["3.9", "3.10", "3.11"]
|
|
exclude:
|
|
- os: macos-latest
|
|
python-version: "3.9"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- 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: |
|
|
python -m pip install --upgrade pip wheel
|
|
pip install -e .
|
|
pip install pytest-cov>=5
|
|
- 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 finetuning tools
|
|
run: |
|
|
pytest samples/tools/finetuning/tests/
|