Skip to content

Commit

Permalink
format and add auto-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Aug 22, 2023
1 parent 12e6b82 commit 0874403
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ jobs:
- name: Benchmark run
run: |
git fetch origin +:refs/remotes/origin/HEAD
julia --project=benchmark/ -e 'using Pkg; Pkg.instantiate(); Pkg.develop(PackageSpec(path=pwd()))'
# explicit `Pkgadd` is a crutch until we've got a good base on main
julia --project=benchmark/ -e 'using PkgBenchmark, MixedModels; export_markdown(stdout, judge(MixedModels, BenchmarkConfig(;id="origin/HEAD", juliacmd=`julia -O3 -e"using Pkg; Pkg.update(); Pkg.add([\"BenchmarkTools\", \"StatsModels\"])"`); verbose=true))'
julia --project=benchmark/ -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
# Pkg.update() allows us to benchmark even when dependencies/compat requirements change
julia --project=benchmark/ -e '
using PkgBenchmark, MixedModels
# explicit `Pkgadd` is a crutch until we've got a good base on main
juliacmd = `$(Base.julia_cmd()) -O3 -e "using Pkg; Pkg.update(); Pkg.add([\"BenchmarkTools\", \"StatsModels\"])"`
config = BenchmarkConfig(; id="origin/HEAD", juliacmd)
export_markdown("benchmark.md", judge(MixedModels, config; verbose=true))'
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
filePath: "benchmark.md"
comment_tag: benchmark

0 comments on commit 0874403

Please sign in to comment.