-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add test for updating leaderboard
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: test format leaderboard | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'src/alpaca_eval/leaderboards/data_AlpacaEval/**' | ||
- 'results/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
format_leaderboard: | ||
runs-on: "ubuntu-20.04" | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: "pip" | ||
|
||
- name: Install dependencies | ||
run: pip install . | ||
|
||
- name: Format sample sheets | ||
run: python docs/format_sample_sheets.py | ||
|
||
- name: Update leaderboard | ||
run: python docs/format_export_leaderboards.py |