ci: add GitHub Models CI workflow for agent testing #5
Workflow file for this run
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
name: GitHub Models CI Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
permissions: | |
contents: read | |
jobs: | |
test-github-models-agent: | |
name: Test Agent with GitHub Models | |
runs-on: ubuntu-24.04 | |
steps: | |
# Common steps: | |
- name: Checkout code | |
uses: actions/checkout@v5 | |
- name: Set up uv | |
uses: astral-sh/[email protected] | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: uv sync --all-extras | |
# Install the main package so MCP server command is available | |
- name: Install connector-builder-mcp package | |
run: uv pip install -e . | |
# Job-specific step(s): | |
- name: Run agent with GitHub Models | |
env: | |
OPENAI_API_KEY: ${{ secrets.GITHUB_TOKEN }} | |
OPENAI_API_ROOT: https://models.github.ai/v1 | |
run: | | |
cd examples | |
uv run --project=examples run_mcp_agent.py --headless --model="gpt-4o-mini" |