mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
ci: skip live evals without credentials
This commit is contained in:
parent
d90d2caed3
commit
2fd48260f6
2 changed files with 12 additions and 2 deletions
12
.github/workflows/eval.yml
vendored
12
.github/workflows/eval.yml
vendored
|
|
@ -86,7 +86,17 @@ jobs:
|
|||
pip install -e ".[all]"
|
||||
python -c "from headroom._core import SmartCrusher; print('headroom._core OK')"
|
||||
- name: Run Tier 1 evaluation suite
|
||||
run: python -m headroom.evals suite --tier 1 --ci -o eval_results/
|
||||
run: |
|
||||
if [ -z "${OPENAI_API_KEY}" ]; then
|
||||
echo "::warning title=Weekly eval skipped::OPENAI_API_KEY is not configured for this repo; skipping the live Tier 1 suite."
|
||||
mkdir -p eval_results
|
||||
printf '%s\n\n%s\n' \
|
||||
'# Weekly Evaluation Skipped' \
|
||||
'OPENAI_API_KEY is not configured for this repository, so the live Tier 1 evaluation suite was skipped.' \
|
||||
> eval_results/skipped.md
|
||||
exit 0
|
||||
fi
|
||||
python -m headroom.evals suite --tier 1 --ci -o eval_results/
|
||||
env:
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ html = [
|
|||
]
|
||||
# Comprehensive LLM benchmarks
|
||||
benchmark = [
|
||||
"lm-eval>=0.4.0",
|
||||
"lm-eval[api]>=0.4.0",
|
||||
"openai>=1.0.0",
|
||||
"anthropic>=0.18.0",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue