Skip to content

Commit 8933246

Browse files
committed
Trivial change, test PR
1 parent 3e9bac9 commit 8933246

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/benchmarkpr.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,22 @@ jobs:
5252
run: julia -e "
5353
using BenchmarkCI, PkgBenchmark;
5454
jd=BenchmarkCI.judge(baseline=\"origin/${GITHUB_BASE_REF}\");
55-
writeresults(\"targetbenchout.json\", jd.target_results);
56-
writeresults(\"baselinebenchout.json\", jd.baseline_results);
5755
"
5856
- name: Post results if pull request
5957
if: github.event_name == 'pull_request'
6058
run: julia -e 'using BenchmarkCI; BenchmarkCI.postjudge()'
6159
env:
6260
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
- name: Add comment
62+
if: github.event_name == 'pull_request'
63+
run: gh pr comment "$NUMBER" --body "$BODY"
64+
env:
65+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
GH_REPO: ${{ github.repository }}
67+
NUMBER: ${{ github.event.pull_request.number }}
68+
BODY: >
69+
This pr comment is testing.
70+
**This should be bold**
6371
- name: Run benchmark if push/merge
6472
if: github.event_name == 'push'
6573
run: julia --project=benchmark -e "
@@ -73,6 +81,6 @@ jobs:
7381
"
7482
- uses: actions/upload-artifact@v3
7583
with:
76-
name: Store benchmark result
77-
path: ./*benchout.json
84+
name: Store benchmark result
85+
path: ./*benchout.json
7886

benchmark/benchmarks.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using BenchmarkTools
2-
using Graphs
1+
using BenchmarkTools, Graphs
32

43
const BENCHDIR = dirname(@__FILE__)
54

0 commit comments

Comments
 (0)