-
Notifications
You must be signed in to change notification settings - Fork 13
30 lines (28 loc) · 988 Bytes
/
Benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 }}