-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
41 lines (39 loc) · 1.04 KB
/
action.yml
File metadata and controls
41 lines (39 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "rag-optimize-ci"
description: "Evaluate RAG candidates by quality, groundedness, citation, latency, and cost"
author: "Harmeet Singh"
branding:
icon: "shield"
color: "blue"
inputs:
config:
description: "Path to ragopt YAML config"
required: true
report_path:
description: "Path to markdown report output"
required: false
default: "artifacts/report.md"
post_pr_comment:
description: "Post markdown summary as PR comment"
required: false
default: "true"
runs:
using: "composite"
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install ragopt
shell: bash
run: |
python -m pip install --upgrade pip
pip install .
- name: Run ragopt
shell: bash
run: |
ARGS="ragopt run --config ${{ inputs.config }} --report ${{ inputs.report_path }}"
if [ "${{ inputs.post_pr_comment }}" = "true" ]; then
ARGS="$ARGS --github-pr-comment"
fi
echo "$ARGS"
eval "$ARGS"