ci: add GitHub Models CI workflow for agent testing #13
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 | |
# Sync examples dependencies | |
- name: Install examples dependencies | |
run: uv sync --project examples | |
# 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: | | |
# Run the script from root with examples project context | |
uv run --project examples examples/run_mcp_agent.py --headless --model="gpt-4o-mini" |