Skip to content

Commit

Permalink
updates gh action to use uv
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcoole committed Dec 13, 2024
1 parent c5d5353 commit 2acb446
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/cml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@ jobs:
train-and-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version-file: "pyproject.toml"
- uses: iterative/setup-cml@v2
- name: Run pipeline
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install .
python dummy-evaluation.py
uv sync
uv run dummy-evaluation.py
# Create CML report
cat metrics.txt >> report.md
echo '![](./metrics.png "Violin Plot of Metrics")' >> report.md
cml comment create report.md

1 comment on commit 2acb446

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

context_recall: 0.4763547415053659
context_precision: 0.4781536589041577
answer_correctness: 0.5094111747829737
answer_relevancy: 0.47956499466891506

Please sign in to comment.