-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (45 loc) · 1.32 KB
/
R-old-check.yaml
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
# check the package against older versions of R
on:
push:
branches: [main]
pull_request:
branches: [main]
name: R-old-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: '3.2.0'}
- {os: ubuntu-latest, r: '3.2.1'}
- {os: ubuntu-latest, r: '3.2.2'}
- {os: ubuntu-latest, r: '3.2.3'}
- {os: ubuntu-latest, r: '3.2.4'}
- {os: ubuntu-latest, r: '3.2.5'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
_R_CHECK_FORCE_SUGGESTS_: false
steps:
- uses: actions/checkout@HEAD
- uses: r-lib/actions/setup-tinytex@HEAD
- uses: r-lib/actions/setup-r@HEAD
with:
r-version: ${{ matrix.config.r }}
use-public-rspm: true
- name: Install dependencies
run: |
Rscript .github/workflows/deps.R
- name: Setup tmate session
uses: mxschmitt/action-tmate@HEAD
if: matrix.config.r == '3.0.0'
- name: R CMD check
shell: bash
run: |
R CMD INSTALL .
cd ..
R CMD build litedown
R CMD check --as-cran litedown_*.tar.gz