Merge pull request #34 from Muhammad0isah/main #26
This file contains hidden or 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
| name: Score and Update Leaderboard | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "submissions/**" | |
| permissions: | |
| contents: write | |
| jobs: | |
| score: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - run: pip install pandas scikit-learn | |
| - name: Load hidden labels | |
| run: | | |
| echo "${{ secrets.TESTREAL }}" > data/ground_truth.csv | |
| - name: Score new submissions | |
| run: | | |
| python update_leaderboard.py | |
| python render_leaderboard.py | |
| - name: Commit leaderboard updates | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add leaderboard/leaderboard.csv leaderboard/leaderboard.md | |
| rm -f submissions/*.csv | |
| git add submissions/ | |
| git commit -m "Update leaderboard" || echo "No changes to commit" | |
| - name: Push changes | |
| run: git push |