Update athina_ci.yml #9
This file contains 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: CI with Athina Evals | |
on: | |
# Trigger CI on PRs to main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
evaluate: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out repository code | |
- uses: actions/checkout@v3 | |
# Set up Python environment | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
# Install required packages | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt # Project dependencies | |
pip install athina # Evaluation framework | |
pip install e2b-code-interpreter # Additional dependency of athina | |
# Optional dataset preparation step | |
- name: Prepare Dataset | |
run: | | |
echo "Prepare your dataset here if necessary" | |
# Run evaluation with OpenAI API access | |
- name: Run Athina Evaluation | |
run: python -m evaluations.run_athina_evals | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |