Merge pull request #51 from camilogarciabotero/develop #252
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Benchmarks | |
on: | |
- push | |
- pull_request | |
jobs: | |
Benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: 1 | |
- uses: julia-actions/julia-buildpkg@v1 | |
- name: Install Dependencies | |
run: julia -e 'using Pkg; pkg"add PkgBenchmark [email protected]"' | |
- name: Instantiate | |
run: julia --project=benchmark/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | |
- name: Run Benchmarks | |
run: julia -e "using BenchmarkCI; BenchmarkCI.judge()" | |
- name: Post Results | |
if: ${{ github.event_name == 'pull_request'}} | |
run: julia -e "using BenchmarkCI; BenchmarkCI.postjudge()" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Print Judgement | |
run: julia -e 'using BenchmarkCI; BenchmarkCI.displayjudgement()' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |