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

Update light_benchmark.py #273

Merged
merged 2 commits into from
Apr 28, 2024
Merged
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
5 changes: 4 additions & 1 deletion benchmarks/light_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,8 @@ def set_output(key: str, value: str):
for key, score in scores.items():
i = i + 1
pr_score = sys.argv[i]
success = success and (True if float(pr_score) >= score else False)
pr_score_trun = int(float(pr_score) * 100)
score_trun = int(score * 100)
success = success and (True if pr_score_trun >= score_trun else False)
print(f"{key}: {pr_score_trun} (PR) >= {score} (main): {success}")
set_output("success", "1" if success else "0")
Loading