Skip to content

Commit 5126a74

Browse files
authored
add benchmark as PR comment (#80)
* add benchmark as PR comment * ignore some benchmark bits
1 parent c2ef597 commit 5126a74

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/benchmark.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,9 @@ jobs:
3737
using PkgBenchmark, Loess
3838
juliacmd = `$(Base.julia_cmd()) -O3 -e "using Pkg; Pkg.update()"`
3939
config = BenchmarkConfig(; id="origin/HEAD", juliacmd)
40-
export_markdown(stdout, judge(Loess, config; verbose=true))'
40+
export_markdown("benchmark.md", judge(Loess, config; verbose=true))'
41+
- name: Comment PR
42+
uses: thollander/actions-comment-pull-request@v2
43+
with:
44+
filePath: "benchmark.md"
45+
comment_tag: benchmark

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ Manifest.toml
55
docs/build/
66
docs/site/
77
docs/Manifest.toml
8+
benchmark.md
9+
benchmark/tune.json

0 commit comments

Comments
 (0)