Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/score.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ jobs:
echo "Ground truth first line:"
head -1 data/ground_truth.csv

- name: Score submissions
- name: Score the PR submission
run: |
for file in submissions/*.csv; do
SCORE=$(python scoring_script.py "$file" data/ground_truth.csv | grep SCORE | cut -d'=' -f2)
TEAM=$(basename "$file" .csv)
echo "$TEAM,$SCORE" >> leaderboard/leaderboard.csv
done
PR_CSV=$(ls submissions/*.csv | grep -v "submission.csv")
echo "Scoring $PR_CSV"
cp "$PR_CSV" submissions/submission.csv
SCORE=$(python scoring_script.py submissions/submission.csv data/ground_truth.csv | grep SCORE | cut -d'=' -f2)
TEAM=$(basename "$PR_CSV" .csv)
echo "$TEAM,$SCORE" >> leaderboard/leaderboard.csv


# 6️⃣ Run scoring for each submission CSV
- name: Run scoring
Expand Down
Loading