-
Notifications
You must be signed in to change notification settings - Fork 19
Introduce per application validation for python Samples #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
44f395f
Introduce per application validation for python Samples
rahuldevikar761 5d8f4b0
Introduce per application validation for python Samples
rahuldevikar761 078ba38
Introduce per application validation for python Samples
rahuldevikar761 bce6daf
Introduce per application validation for python Samples
rahuldevikar761 5819a30
Introduce per application validation for python Samples
rahuldevikar761 670a82c
Introduce per application validation for python Samples
rahuldevikar761 8f965c5
Introduce per application validation for python Samples
rahuldevikar761 f39dcfa
Introduce per application validation for python Samples
rahuldevikar761 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
78 changes: 78 additions & 0 deletions
78
.github/workflows/ci-python-agentframework-sampleagent.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| name: CI - Build Python Agent Framework Sample Agent | ||
| permissions: | ||
| contents: read | ||
pontemonti marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| on: | ||
| push: | ||
| branches: [ main, master ] | ||
| paths: | ||
| - 'python/agent-framework/sample-agent/**/*' | ||
| - '.github/workflows/ci-python-agentframework-sampleagent.yml' | ||
| pull_request: | ||
| branches: [ main, master ] | ||
| paths: | ||
| - 'python/agent-framework/sample-agent/**/*' | ||
| - '.github/workflows/ci-python-agentframework-sampleagent.yml' | ||
|
|
||
| jobs: | ||
| validate-sample: | ||
| name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
| runs-on: ${{ matrix.os }} | ||
| defaults: | ||
| run: | ||
| working-directory: ./python/agent-framework/sample-agent | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ['3.11', '3.12'] | ||
| os: [ubuntu-latest, windows-latest] | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Display environment | ||
| run: | | ||
| python --version | ||
| pip --version | ||
|
|
||
| - name: Install dependencies from PyPI | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install --pre -e . | ||
|
|
||
| - name: Display installed package versions | ||
| run: | | ||
| pip show microsoft-agents-a365-sdk microsoft-agents-core microsoft-agents-orchestration microsoft-agents-teams-channel microsoft-agents-python-channels 2>/dev/null || echo "Package version information unavailable" | ||
| shell: bash | ||
|
|
||
| - name: Verify dependencies installed | ||
| run: | | ||
| pip list | ||
| python -c "import aiohttp; print('OK: aiohttp')" | ||
| python -c "import fastapi; print('OK: fastapi')" | ||
| python -c "import pydantic; print('OK: pydantic')" | ||
|
|
||
| - name: Compile and validate Python syntax | ||
| run: | | ||
| python -m compileall -f -q . || (echo "Syntax validation failed" && exit 1) | ||
| echo "All Python files compiled successfully" | ||
|
|
||
| - name: Test imports | ||
| continue-on-error: true | ||
| run: | | ||
| python -c "import agent" | ||
| python -c "import agent_interface" | ||
| python -c "import host_agent_server" | ||
|
|
||
| - name: Summary | ||
| if: always() | ||
| shell: bash | ||
| run: | | ||
| echo "### Agent Framework Sample - Python ${{ matrix.python-version }} on ${{ matrix.os }}" >> $GITHUB_STEP_SUMMARY | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| name: CI - Build Python Google ADK Sample Agent | ||
rahuldevikar761 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| permissions: | ||
| contents: read | ||
pontemonti marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| on: | ||
| push: | ||
| branches: [ main, master ] | ||
| paths: | ||
| - 'python/google-adk/sample-agent/**/*' | ||
| - '.github/workflows/ci-python-googleadk-sampleagent.yml' | ||
| pull_request: | ||
| branches: [ main, master ] | ||
| paths: | ||
| - 'python/google-adk/sample-agent/**/*' | ||
| - '.github/workflows/ci-python-googleadk-sampleagent.yml' | ||
|
|
||
| jobs: | ||
| validate-sample: | ||
| name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
| runs-on: ${{ matrix.os }} | ||
| defaults: | ||
| run: | ||
| working-directory: ./python/google-adk/sample-agent | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ['3.11', '3.12'] | ||
| os: [ubuntu-latest, windows-latest] | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Display environment | ||
| run: | | ||
| python --version | ||
| pip --version | ||
|
|
||
| - name: Install dependencies from PyPI | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install --pre -e . | ||
|
|
||
| - name: Display installed package versions | ||
| run: | | ||
| pip show microsoft-agents-a365-sdk microsoft-agents-core microsoft-agents-orchestration microsoft-agents-teams-channel microsoft-agents-python-channels 2>/dev/null || echo "Package version information unavailable" | ||
| shell: bash | ||
|
|
||
| - name: Verify dependencies installed | ||
| run: | | ||
| pip list | ||
| python -c "import aiohttp; print('OK: aiohttp')" | ||
| python -c "import fastapi; print('OK: fastapi')" | ||
| python -c "import pydantic; print('OK: pydantic')" | ||
|
|
||
| - name: Compile and validate Python syntax | ||
| run: | | ||
| python -m compileall -f -q . || (echo "Syntax validation failed" && exit 1) | ||
| echo "All Python files compiled successfully" | ||
|
|
||
| - name: Test imports | ||
| continue-on-error: true | ||
| run: | | ||
| python -c "import agent" | ||
| python -c "import mcp_tool_registration_service" | ||
|
|
||
| - name: Summary | ||
| if: always() | ||
| shell: bash | ||
| run: | | ||
| echo "### Google ADK Sample - Python ${{ matrix.python-version }} on ${{ matrix.os }}" >> $GITHUB_STEP_SUMMARY | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| name: CI - Build Python OpenAI Sample Agent | ||
rahuldevikar761 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| permissions: | ||
| contents: read | ||
rahuldevikar761 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| on: | ||
| push: | ||
| branches: [ main, master ] | ||
| paths: | ||
| - 'python/openai/sample-agent/**/*' | ||
| - '.github/workflows/ci-python-openai-sampleagent.yml' | ||
| pull_request: | ||
| branches: [ main, master ] | ||
| paths: | ||
| - 'python/openai/sample-agent/**/*' | ||
| - '.github/workflows/ci-python-openai-sampleagent.yml' | ||
|
|
||
| jobs: | ||
| validate-sample: | ||
| name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
| runs-on: ${{ matrix.os }} | ||
| defaults: | ||
| run: | ||
| working-directory: ./python/openai/sample-agent | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ['3.11', '3.12'] | ||
| os: [ubuntu-latest, windows-latest] | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Display environment | ||
| run: | | ||
| python --version | ||
| pip --version | ||
|
|
||
| - name: Install dependencies from PyPI | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install --pre -e . | ||
|
|
||
| - name: Display installed package versions | ||
| run: | | ||
| echo "=== Microsoft Agent 365 SDK Versions ===" | ||
| pip show microsoft-agents-a365-tooling || echo "Not installed" | ||
| pip show microsoft-agents-a365-tooling-extensions-openai || echo "Not installed" | ||
| pip show microsoft-agents-a365-observability-core || echo "Not installed" | ||
| echo "" | ||
|
|
||
| - name: Verify dependencies installed | ||
| run: | | ||
| pip list | ||
| python -c "import openai; print('OK: openai')" | ||
| python -c "import aiohttp; print('OK: aiohttp')" | ||
| python -c "import fastapi; print('OK: fastapi')" | ||
| python -c "import pydantic; print('OK: pydantic')" | ||
|
|
||
| - name: Compile and validate Python syntax | ||
| run: | | ||
| python -m compileall -f -q . || (echo "Syntax validation failed" && exit 1) | ||
| echo "All Python files compiled successfully" | ||
|
|
||
| - name: Test imports | ||
| continue-on-error: true | ||
| run: | | ||
| python -c "import agent" | ||
| python -c "import agent_interface" | ||
| python -c "import host_agent_server" | ||
|
|
||
| - name: Summary | ||
| if: always() | ||
| shell: bash | ||
| run: | | ||
| echo "### OpenAI Sample - Python ${{ matrix.python-version }} on ${{ matrix.os }}" >> $GITHUB_STEP_SUMMARY | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.