mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: Samples Integration Tests (#615)
* Samples Tests * small fixes * job fix * telemetry dependency fix * job error fix * sorting provider specific tests * telemetry fixes * openai file search fix --------- Co-authored-by: Giles Odigwe <gilesodigwe@microsoft.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
240edb00cd
commit
ee56314a26
@@ -17,6 +17,7 @@ env:
|
||||
# Configure a constant location for the uv cache
|
||||
UV_CACHE_DIR: /tmp/.uv-cache
|
||||
RUN_INTEGRATION_TESTS: "true"
|
||||
RUN_SAMPLES_TESTS: ${{ vars.RUN_SAMPLES_TESTS }}
|
||||
|
||||
jobs:
|
||||
paths-filter:
|
||||
@@ -79,6 +80,10 @@ jobs:
|
||||
- name: Test with pytest
|
||||
run: uv run poe --directory ./packages/${{ env.PACKAGE_NAME }} test --junitxml=coverage.xml
|
||||
working-directory: ./python
|
||||
- name: Test openai samples
|
||||
if: env.RUN_SAMPLES_TESTS == 'true'
|
||||
run: uv run pytest tests/samples/ -m "openai" --junitxml=coverage_samples_main.xml
|
||||
working-directory: ./python
|
||||
- name: Move coverage file
|
||||
run: |
|
||||
mv ./packages/${{ env.PACKAGE_NAME }}/coverage.xml coverage_${{ env.PACKAGE_NAME }}.xml
|
||||
@@ -141,6 +146,10 @@ jobs:
|
||||
- name: Test with pytest
|
||||
run: uv run poe --directory ./packages/${{ env.PACKAGE_NAME }} test --junitxml=coverage.xml
|
||||
working-directory: ./python
|
||||
- name: Test azure samples
|
||||
if: env.RUN_SAMPLES_TESTS == 'true'
|
||||
run: uv run pytest tests/samples/ -m "azure" --junitxml=coverage_samples_azure.xml
|
||||
working-directory: ./python
|
||||
- name: Move coverage file
|
||||
run: |
|
||||
mv ./packages/${{ env.PACKAGE_NAME }}/coverage.xml coverage_${{ env.PACKAGE_NAME }}.xml
|
||||
@@ -202,6 +211,10 @@ jobs:
|
||||
- name: Test with pytest
|
||||
run: uv run poe --directory ./packages/${{ env.PACKAGE_NAME }} test --junitxml=coverage.xml
|
||||
working-directory: ./python
|
||||
- name: Test foundry samples
|
||||
if: env.RUN_SAMPLES_TESTS == 'true'
|
||||
run: uv run pytest tests/samples/ -m "foundry" --junitxml=coverage_samples_foundry.xml
|
||||
working-directory: ./python
|
||||
- name: Move coverage file
|
||||
run: |
|
||||
mv ./packages/${{ env.PACKAGE_NAME }}/coverage.xml coverage_${{ env.PACKAGE_NAME }}.xml
|
||||
@@ -220,6 +233,7 @@ jobs:
|
||||
display-options: fEX
|
||||
fail-on-empty: true
|
||||
title: Test results
|
||||
|
||||
python-integration-tests-check:
|
||||
if: always()
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user