Add bertscore eval #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |