Skip to content

ci: add GitHub Models CI workflow for agent testing #8

ci: add GitHub Models CI workflow for agent testing

ci: add GitHub Models CI workflow for agent testing #8

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
# 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"