-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub-workflow.yml
More file actions
35 lines (30 loc) · 1.31 KB
/
Copy pathgithub-workflow.yml
File metadata and controls
35 lines (30 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Example: drop this in your repo at .github/workflows/modelpin.yml
#
# It runs Modelpin on every pull request, comparing a candidate model against your committed
# baseline, posts the behavioral diff as a sticky PR comment, and fails the check on a
# regression. Replace the tag below with a real release tag, and set your model ids.
name: Modelpin
on:
pull_request:
workflow_dispatch: # let you trigger it by hand when a provider ships a new model
permissions:
contents: read
pull-requests: write # required so the action can post/update the PR comment
jobs:
model-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Modelpin check
uses: samarthputhraya/modelpin@v1 # pin to a release tag
with:
from: gpt-4o-mini # the model you depend on today (committed baseline)
to: gpt-5.5 # the new model to test before adopting
provider: openai
runs: "5"
env:
# BYO-key from repo secrets — never inline a key.
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# If modelpin.yaml sets a judge_model on another provider, add its key too, e.g.:
# GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
# GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}