Skip to content

Commit

Permalink
Use the API key for testing evals in CI (openai#1443)
Browse files Browse the repository at this point in the history
Passes in the API key for testing new evals via CI checks (note: only
works for PRs made from a branch within the repo)
  • Loading branch information
etr2460 authored Dec 21, 2023
1 parent 4fcbed2 commit d30262c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
echo "new_files=$(cat new_files)" >> $GITHUB_ENV
- name: Run oaieval command for each new YAML file
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
files="${{ env.new_files }}"
if [ -n "$files" ]; then
Expand Down

0 comments on commit d30262c

Please sign in to comment.