Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance leaderboard generation workflow and script permissions #6

Merged
merged 8 commits into from
Nov 9, 2024
Merged
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
13 changes: 7 additions & 6 deletions .github/workflows/leaderboard-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:

- name: Install dependencies
run: |
python -m venv .venv
source .venv/bin/activate
pip install --editable .

python -m pip install --upgrade pip
python -m pip install --editable .
# Make the slim-leaderboard script executable and add to PATH
chmod +x src/jpl/slim/leaderboard.py
echo "${GITHUB_WORKSPACE}/src/jpl/slim" >> $GITHUB_PATH

- name: Run script and prepare files
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
Expand Down Expand Up @@ -59,8 +61,7 @@ jobs:
Automated PR to update SLIM leaderboards

Updates made to:
- examples/slim-fprime-leaderboard.md
- examples/slim-ammos-leaderboard.md
- examples/slim-*-leaderboard.md

Generated by GitHub Actions - please review the changes.
branch: update-slim-leaderboards
Expand Down
10 changes: 5 additions & 5 deletions src/jpl/slim/leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,11 @@ def style_status_for_markdown(status, emoji=False):
if args.output_format == "MARKDOWN": # If markdown styling specified, will just print pure Markdown text not rendered
markdown_table = textwrap.dedent("""
# Summary Statistics
'YES': Full completion/success (100%)
'NO': No completion/failure (0%)
'PARTIAL': Partial completion (50%)
'ISSUE': Problem reported (25%)
'PR' (likely Pull Request): Code changes proposed (25%)
- 'YES': Full completion/success (100%)
- 'NO': No completion/failure (0%)
- 'PARTIAL': Partial completion (50%)
- 'ISSUE': Problem reported (25%)
- 'PR' (likely Pull Request): Code changes proposed (25%)

| Category | Score (%) |
| ------ | ----- |
Expand Down
Loading