|
a |
|
b/.github/workflows/test.yaml |
|
|
1 |
on: |
|
|
2 |
push: |
|
|
3 |
branches: [main, master] |
|
|
4 |
pull_request: |
|
|
5 |
branches: [main, master] |
|
|
6 |
|
|
|
7 |
concurrency: |
|
|
8 |
# Group runs by PR, but keep runs on the default branch separate |
|
|
9 |
# because we do not want to cancel ToolShed uploads |
|
|
10 |
group: test-${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') && github.run_number || github.ref }} |
|
|
11 |
cancel-in-progress: true |
|
|
12 |
|
|
|
13 |
name: R-CMD-check |
|
|
14 |
|
|
|
15 |
jobs: |
|
|
16 |
R-CMD-check: |
|
|
17 |
runs-on: ${{ matrix.config.os }} |
|
|
18 |
|
|
|
19 |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
|
|
20 |
|
|
|
21 |
strategy: |
|
|
22 |
fail-fast: false |
|
|
23 |
matrix: |
|
|
24 |
config: |
|
|
25 |
- {os: macos-latest, r: 'release'} |
|
|
26 |
|
|
|
27 |
- {os: windows-latest, r: 'release'} |
|
|
28 |
# Use 3.6 to trigger usage of RTools35 |
|
|
29 |
# R < 4 does not work- {os: windows-latest, r: '3.6'} |
|
|
30 |
# use 4.1 to check with rtools40's older compiler |
|
|
31 |
- {os: windows-latest, r: '4.1'} |
|
|
32 |
|
|
|
33 |
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} |
|
|
34 |
- {os: ubuntu-latest, r: 'release'} |
|
|
35 |
- {os: ubuntu-latest, r: 'oldrel-1'} |
|
|
36 |
- {os: ubuntu-latest, r: 'oldrel-2'} |
|
|
37 |
#R<4 does not work - {os: ubuntu-latest, r: 'oldrel-3'} |
|
|
38 |
#R<4 does not work - {os: ubuntu-latest, r: 'oldrel-4'} |
|
|
39 |
|
|
|
40 |
env: |
|
|
41 |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
|
|
42 |
R_KEEP_PKG_SOURCE: yes |
|
|
43 |
|
|
|
44 |
steps: |
|
|
45 |
- uses: actions/checkout@v3 |
|
|
46 |
|
|
|
47 |
- uses: r-lib/actions/setup-pandoc@v2 |
|
|
48 |
|
|
|
49 |
- uses: r-lib/actions/setup-r@v2 |
|
|
50 |
with: |
|
|
51 |
r-version: ${{ matrix.config.r }} |
|
|
52 |
http-user-agent: ${{ matrix.config.http-user-agent }} |
|
|
53 |
use-public-rspm: true |
|
|
54 |
|
|
|
55 |
- uses: r-lib/actions/setup-r-dependencies@v2 |
|
|
56 |
with: |
|
|
57 |
extra-packages: any::rcmdcheck |
|
|
58 |
needs: check |
|
|
59 |
|
|
|
60 |
- uses: r-lib/actions/check-r-package@v2 |
|
|
61 |
with: |
|
|
62 |
upload-snapshots: true |
|
|
63 |
args: '"--no-manual"' |
|
|
64 |
env: |
|
|
65 |
_R_CHECK_FORCE_SUGGESTS_: false |