Repository navigation
85 lines (80 loc) · 2.3 KB
/
Copy pathquality.yml
File metadata and controls
85 lines (80 loc) · 2.3 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: R package quality
on:
pull_request:
push:
branches: [main]
schedule:
- cron: "23 5 * * 2"
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
jobs:
r-cmd-check:
name: R CMD check (${{ matrix.config.os }}, R ${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: "release"}
- {os: ubuntu-latest, r: "oldrel-1"}
- {os: macos-latest, r: "release"}
- {os: windows-latest, r: "release"}
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran")'
error-on: '"warning"'
scale-smoke:
name: Scale and bundle budgets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: local::.
needs: check
- name: Enforce smoke budgets
run: Rscript tools/benchmarks/run_scale_benchmarks.R evidence/scale smoke
- uses: actions/upload-artifact@v4
if: always()
with:
name: referent-scale-smoke
path: evidence/scale
scale-release:
name: Release-scale budgets
if: >-
github.event_name == 'schedule' ||
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: local::.
needs: check
- name: Enforce release budgets
run: Rscript tools/benchmarks/run_scale_benchmarks.R evidence/scale release
- uses: actions/upload-artifact@v4
if: always()
with:
name: referent-scale-release
path: evidence/scale