From 89332464f2697ec1e69ec2f53eb235a714cd4d05 Mon Sep 17 00:00:00 2001 From: fchrstou Date: Mon, 26 Feb 2024 14:06:55 +0100 Subject: [PATCH] Trivial change, test PR --- .github/workflows/benchmarkpr.yml | 16 ++++++++++++---- benchmark/benchmarks.jl | 3 +-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/benchmarkpr.yml b/.github/workflows/benchmarkpr.yml index 999093593..26e9a26c7 100644 --- a/.github/workflows/benchmarkpr.yml +++ b/.github/workflows/benchmarkpr.yml @@ -52,14 +52,22 @@ jobs: run: julia -e " using BenchmarkCI, PkgBenchmark; jd=BenchmarkCI.judge(baseline=\"origin/${GITHUB_BASE_REF}\"); - writeresults(\"targetbenchout.json\", jd.target_results); - writeresults(\"baselinebenchout.json\", jd.baseline_results); " - name: Post results if pull request if: github.event_name == 'pull_request' run: julia -e 'using BenchmarkCI; BenchmarkCI.postjudge()' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Add comment + if: github.event_name == 'pull_request' + run: gh pr comment "$NUMBER" --body "$BODY" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.pull_request.number }} + BODY: > + This pr comment is testing. + **This should be bold** - name: Run benchmark if push/merge if: github.event_name == 'push' run: julia --project=benchmark -e " @@ -73,6 +81,6 @@ jobs: " - uses: actions/upload-artifact@v3 with: - name: Store benchmark result - path: ./*benchout.json + name: Store benchmark result + path: ./*benchout.json diff --git a/benchmark/benchmarks.jl b/benchmark/benchmarks.jl index e9c220a24..932b78157 100644 --- a/benchmark/benchmarks.jl +++ b/benchmark/benchmarks.jl @@ -1,5 +1,4 @@ -using BenchmarkTools -using Graphs +using BenchmarkTools, Graphs const BENCHDIR = dirname(@__FILE__)