Skip to content

Commit

Permalink
Add GitHub Action workflow to run benchmarks on CI for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Feb 22, 2021
1 parent 969ba9a commit 79ef6e5
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run benchmarks

on:
pull_request:
workflow_dispatch:

jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '^1.6.0-0'
- name: Install dependencies
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.instantiate()
pkg"add PkgBenchmark BenchmarkCI@0.1"
- name: Run benchmarks
shell: julia --color=yes {0}
run: |
using PkgBenchmark, BenchmarkCI
BenchmarkCI.judge(
PkgBenchmark.BenchmarkConfig(
env = Dict(
"JULIA_NUM_THREADS" => "2",
),
)
)
- name: Push results
shell: julia --color=yes {0}
run: |
using BenchmarkCI;
BenchmarkCI.pushresult(;
url = "git@github.com:Team-RADDISH/ParticleDA.jl.git",
)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_KEY: ${{ secrets.DOCUMENTER_KEY }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
Manifest.toml
/dev/
/docs/build/
/.benchmarkci

0 comments on commit 79ef6e5

Please sign in to comment.