Skip to content

Commit

Permalink
Add to README
Browse files Browse the repository at this point in the history
  • Loading branch information
ankrgyl committed Sep 30, 2024
1 parent 45fa66e commit 6d354e1
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ jobs:
root: my_eval_dir
```

> [!IMPORTANT]
> You must specify `permissions` for the action to leave comments on your PR.
> Without these permissions, you'll see Github API errors.
> [!IMPORTANT] You must specify `permissions` for the action to leave comments
> on your PR. Without these permissions, you'll see Github API errors.

To see examples of fully configured templates, see the `examples` directory:

- [`node with npm`](examples/npm.yml)
- [`node with pnpm`](examples/pnpm.yml)
- [`python`](examples/python.yml)

## How it works

Expand Down
41 changes: 41 additions & 0 deletions examples/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run Python evals

on:
push:
# Uncomment to run only when files in the 'evals' directory change
# - paths:
# - "evals/**"

permissions:
pull-requests: write
contents: read

jobs:
eval:
name: Run evals
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12" # Replace with your Python version

# Tweak this to a dependency manager of your choice
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-eval-py/requirements.txt
- name: Run Evals
uses: ./
with:
api_key: ${{ secrets.BRAINTRUST_API_KEY }}
runtime: python
root: my_eval_dir

0 comments on commit 6d354e1

Please sign in to comment.