Skip to content

Commit

Permalink
cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Sep 21, 2023
1 parent 2ec2dae commit a203c64
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
20 changes: 0 additions & 20 deletions tests/ci_build/r_time2md.py

This file was deleted.

14 changes: 11 additions & 3 deletions tests/ci_build/test_r_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,17 @@ def check_example_timing(rcheck_dir: Path, threshold: float) -> None:
df[ratio_n] = df["user"] / df["elapsed"]
offending = df[df[ratio_n] > threshold]

if offending.shape[0] > 0:
print(offending)
raise ValueError("There are examples using too many threads")
if offending.shape[0] == 0:
return

try:
# requires the tabulate package
offending.to_markdown("offending.md")
except ImportError:
pass

print(offending)
raise ValueError("There are examples using too many threads")


@cd(ROOT)
Expand Down

0 comments on commit a203c64

Please sign in to comment.