Skip to content

add a couple of simple evaluators #1

add a couple of simple evaluators

add a couple of simple evaluators #1

name: Validate evaluators
on:
pull_request:
paths:
- "evaluators/**"
- "scripts/validate_evaluator.py"
- "scripts/test_input.json"
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install pyyaml agentevals-evaluator-sdk
- name: Discover and validate all evaluators
run: |
evaluator_dirs=$(find evaluators -mindepth 1 -maxdepth 1 -type d | sort)
if [ -z "$evaluator_dirs" ]; then
echo "No evaluator directories found."
exit 0
fi
python scripts/validate_evaluator.py $evaluator_dirs