-
Notifications
You must be signed in to change notification settings - Fork 22
40 lines (34 loc) · 989 Bytes
/
bench.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
35
36
37
38
39
on:
pull_request:
branches:
- v2*
name: bench
jobs:
bench:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::bench
any::nycflights13
any::remotes
any::here
- name: install current version
run: remotes::install_github("ropensci/readODS")
shell: Rscript {0}
- name: run bench.R with the current version
run: Rscript benchmark/bench.R HEAD
- name: install PR version
run: remotes::install_local(".", upgrade = "never")
shell: Rscript {0}
- name: run bench.R with the PR version
run: Rscript benchmark/bench.R PR
- name: Print the benchmark
run: Rscript benchmark/print_bench.R