<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GitHub Actions | Jacob Aloysious</title><link>https://jacobaloysious.in/tag/github-actions/</link><atom:link href="https://jacobaloysious.in/tag/github-actions/index.xml" rel="self" type="application/rss+xml"/><description>GitHub Actions</description><generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator><language>en-us</language><lastBuildDate>Sun, 22 Nov 2026 00:00:00 +0000</lastBuildDate><image><url>https://jacobaloysious.in/img/jacob-leadership-social.png</url><title>GitHub Actions</title><link>https://jacobaloysious.in/tag/github-actions/</link></image><item><title>Set Up Cross-Model Agent Evals with GitHub Actions and Vercel</title><link>https://jacobaloysious.in/post/cross-model-agent-evals/</link><pubDate>Sun, 22 Nov 2026 00:00:00 +0000</pubDate><guid>https://jacobaloysious.in/post/cross-model-agent-evals/</guid><description>&lt;p>Comparing models is also a small platform-design problem: where do provider keys live, who can spend API credits, how do we make runs repeatable, and where can a team inspect results? This post walks through the setup I used to compare OpenAI and Meta in a fictional customer-support agent. It is Part 3 of a four-part series:
&lt;a href="https://jacobaloysious.in/post/learning-agent-evals-with-codex/" target="_blank" rel="noopener">Part 1&lt;/a> introduces the project and eval foundations;
&lt;a href="https://jacobaloysious.in/post/tracing-agent-across-vercel-openai/" target="_blank" rel="noopener">Part 2&lt;/a> follows its observability path. Part 4 will focus on the evals themselves and how to tune them.&lt;/p>
&lt;h2 id="keep-provider-selection-behind-one-interface">Keep provider selection behind one interface&lt;/h2>
&lt;p>The agent uses the OpenAI Agents SDK. Meta provides an OpenAI-compatible Responses endpoint, so the project can keep the same agent instructions and tool definitions while configuring a different provider. That compatibility makes the experiment smaller; it does not mean the models behave alike or support every identical feature.&lt;/p>
&lt;p>The server-side provider adapter selects the credentials and endpoint:&lt;/p>
&lt;pre>&lt;code class="language-js">if (provider === &amp;quot;meta&amp;quot;) {
return {
provider,
model: env.META_MODEL || &amp;quot;muse-spark-1.3&amp;quot;,
modelProvider: new OpenAIProvider({
apiKey: env.META_MODEL_API_KEY,
baseURL: env.META_MODEL_BASE_URL || &amp;quot;https://api.meta.ai/v1&amp;quot;,
useResponses: true,
}),
};
}
&lt;/code>&lt;/pre>
&lt;p>OpenAI uses its default SDK provider and &lt;code>OPENAI_API_KEY&lt;/code>; Meta uses &lt;code>META_MODEL_API_KEY&lt;/code> and the compatible endpoint. Model names and provider choice are configuration. Keys remain on the server and never go into browser code or a committed &lt;code>.env&lt;/code> file. For this comparison, the runner loads one shared scenario suite and constructs a provider configuration for each model. That keeps the experiment focused on the provider/model change rather than creating two separate agents.&lt;/p>
&lt;h2 id="put-paid-runs-behind-an-intentional-action">Put paid runs behind an intentional action&lt;/h2>
&lt;p>Live model calls spend API credits. I chose a manually dispatched GitHub Actions workflow rather than a public dashboard button that can start a paid comparison. The workflow runs from &lt;code>main&lt;/code> and uses the GitHub &lt;code>Production&lt;/code> environment, where &lt;code>OPENAI_API_KEY&lt;/code> and &lt;code>META_MODEL_API_KEY&lt;/code> are configured as secrets. A repository writer can start a run; visitors cannot.&lt;/p>
&lt;pre>&lt;code class="language-yaml">on:
workflow_dispatch:
jobs:
compare:
if: github.ref == 'refs/heads/main'
environment: Production
steps:
- name: Run offline checks before using API credits
run: |
pnpm test
pnpm eval:policy
- name: Run the paired live comparison
run: pnpm eval:compare
&lt;/code>&lt;/pre>
&lt;p>That ordering catches basic code and policy regressions before the metered calls. The workflow checks that both secrets exist, then runs the same cases against both providers. It is separate from ordinary push and pull-request CI: routine CI stays deterministic and free of provider calls; a human explicitly starts the paid comparison after the change is ready.&lt;/p>
&lt;h2 id="publish-reports-without-publishing-credentials">Publish reports without publishing credentials&lt;/h2>
&lt;p>The comparison first writes a detailed JSON report to the ignored &lt;code>eval-results/&lt;/code> folder. The workflow then validates the report shape and checks that configured API keys do not appear in the file. Only the checked report is copied into the tracked &lt;code>eval-reports/&lt;/code> directory and committed by the GitHub Actions bot.&lt;/p>
&lt;pre>&lt;code class="language-text">GitHub Actions ── API keys from Production secrets ──► OpenAI / Meta
│ │
├─ offline tests, then paired model run ◄────────┘
├─ validate and commit key-free JSON report ──► GitHub
└─────────────────────────────────────────────► Vercel rebuild
│
read index.json + reports ◄┘
public, read-only dashboard
&lt;/code>&lt;/pre>
&lt;p>The Vercel dashboard fetches the committed &lt;code>eval-reports/index.json&lt;/code> and its report files. It does not hold provider keys or execute the comparison. This was a deliberate boundary: the report uses fictional data and can be public, while spending API credits requires GitHub write access. The report retains its source commit, scenario-file hashes, pricing date, and per-case results so a displayed number can be traced to the run that produced it. The dashboard is
&lt;a href="https://ai-evals-support-agent.vercel.app/evals" target="_blank" rel="noopener">available here&lt;/a>, and the
&lt;a href="https://github.com/jacobaloysious/ai-evals-support-agent" target="_blank" rel="noopener">GitHub repository&lt;/a> contains the workflow and report history.&lt;/p>
&lt;p>This design uses Git as a lightweight report store: it is simple to audit and deploy, with no database or credentials in the frontend. The tradeoff is that reports are public and repository history grows, so the publisher keeps only a bounded recent index. That is appropriate for this learning project with synthetic fixtures, not automatically suitable for real customer conversations or sensitive business data.&lt;/p>
&lt;h2 id="the-run-path">The run path&lt;/h2>
&lt;ol>
&lt;li>Make a provider, scenario, or agent change and merge it to &lt;code>main&lt;/code> after ordinary CI passes.&lt;/li>
&lt;li>In GitHub Actions, manually start &lt;strong>Model comparison&lt;/strong>. The workflow reads the two secrets from the protected environment and runs the offline gates before live API calls.&lt;/li>
&lt;li>Review the completed run and its committed report. Vercel rebuilds the dashboard from GitHub; open &lt;code>/evals&lt;/code> to compare the published result.&lt;/li>
&lt;/ol>
&lt;p>The engineering choice is to separate code validation, paid model execution, and report viewing. It gives an IC a traceable run and gives a manager a clear control over when usage occurs. Part 4 will move from this plumbing to the harder questions: what scenarios belong in the suite, what a fair grader measures, how to classify failures, and how to tune without teaching the model to game the test.&lt;/p></description></item></channel></rss>