-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (32 loc) · 969 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
31
32
33
34
name: Run benchmarks
on:
pull_request:
branches:
- master
- '!compathelper/**'
paths-ignore:
- 'README.md'
- 'test/**'
- 'docs/**'
- 'examples/**'
jobs:
Benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: 1
- uses: julia-actions/julia-buildpkg@latest
- name: Install dependencies
run: |
julia -e 'using Pkg; pkg"add PkgBenchmark [email protected]"'
cd benchmark; ln -s ../test/Artifacts.toml Artifacts.toml
- name: Run benchmarks
run: julia -e 'using BenchmarkCI; BenchmarkCI.judge(; retune=true)'
- name: Post results
run: julia -e 'using BenchmarkCI; BenchmarkCI.postjudge()'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Print judgement
run: julia -e 'using BenchmarkCI; BenchmarkCI.displayjudgement()'