-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (56 loc) · 2.08 KB
/
Copy pathR-CMD-check.yaml
File metadata and controls
70 lines (56 loc) · 2.08 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
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} (${{ matrix.r }}) - ${{ matrix.backend }}
strategy:
fail-fast: false
matrix:
include:
- { os: "ubuntu-latest", python: "3.13", r: "release", backend: "venv" }
- { os: "ubuntu-latest", python: "3.13", r: "release", backend: "conda" }
- { os: "windows-latest", python: "3.13", r: "release", backend: "venv" }
- { os: "windows-latest", python: "3.13", r: "release", backend: "conda" }
- { os: "macOS-latest", python: "3.13", r: "release", backend: "venv" }
- { os: "macOS-latest", python: "3.13", r: "release", backend: "conda" }
- { os: "ubuntu-latest", python: "3.10", r: "oldrel-1", backend: "venv" }
- { os: "ubuntu-latest", python: "3.10", r: "oldrel-2", backend: "venv" }
- { os: "ubuntu-latest", python: "3.10", r: "oldrel-3", backend: "venv" }
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
MPLBACKEND: Agg
ACRO_USE_CONDA: ${{ matrix.backend == 'conda' && 'true' || 'false' }}
steps:
- name: Checkout ACRO
uses: actions/checkout@v6
- name: Setup Miniconda
if: matrix.backend == 'conda'
uses: conda-incubator/setup-miniconda@v4
with:
python-version: ${{ matrix.python }}
auto-activate-base: false
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r }}
- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
- name: Check R Package
uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true