Browse Source

BUILD: Use BenchmarkCI.jl to run package benchmarks on GitHub PRs.

pull/334/head
Evan Patterson 5 months ago
parent
commit
1883e536de
  1. 17
      .github/workflows/benchmarks.yml
  2. 3
      .gitignore

17
.github/workflows/benchmarks.yml

@ -0,0 +1,17 @@
name: Benchmarks
on: [pull_request]
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Julia
uses: julia-actions/setup-julia@latest
with:
version: 1.5
- name: Install dependencies
run: julia -e 'using Pkg; pkg"add PkgBenchmark BenchmarkCI@0.1"'
- name: Run benchmarks
run: julia -e 'using BenchmarkCI; BenchmarkCI.judge()'
- name: Print results
run: julia -e 'using BenchmarkCI; BenchmarkCI.displayjudgement()'

3
.gitignore

@ -5,7 +5,8 @@
.ipynb_checkpoints
# Julia
benchmark/tune.json
.benchmarkci
benchmark/*.json
Manifest.toml
*.jl.cov
*.jl.*.cov

Loading…
Cancel
Save