|
3 | 3 | branches: [main, master] |
4 | 4 | pull_request: |
5 | 5 | branches: [main, master] |
| 6 | + |
6 | 7 | name: R-CMD-check |
| 8 | + |
7 | 9 | jobs: |
8 | 10 | R-CMD-check: |
9 | 11 | runs-on: ${{ matrix.os }} |
10 | | - name: ${{ matrix.os }} (${{ matrix.r }}) |
| 12 | + name: ${{ matrix.os }} (${{ matrix.r }}) - ${{ matrix.backend }} |
| 13 | + |
11 | 14 | strategy: |
12 | 15 | fail-fast: false |
13 | 16 | matrix: |
14 | 17 | include: |
15 | | - - { os: "ubuntu-latest", python: "3.13", r: "release" } |
16 | | - - { os: "windows-latest", python: "3.13", r: "release" } |
17 | | - - { os: "macOS-latest", python: "3.13", r: "release" } |
18 | | - - { os: "ubuntu-latest", python: "3.10", r: "oldrel-1" } |
19 | | - - { os: "ubuntu-latest", python: "3.10", r: "oldrel-2" } |
20 | | - - { os: "ubuntu-latest", python: "3.10", r: "oldrel-3" } |
| 18 | + - { os: "ubuntu-latest", python: "3.13", r: "release", backend: "venv" } |
| 19 | + - { os: "ubuntu-latest", python: "3.13", r: "release", backend: "conda" } |
| 20 | + |
| 21 | + - { os: "windows-latest", python: "3.13", r: "release", backend: "venv" } |
| 22 | + - { os: "windows-latest", python: "3.13", r: "release", backend: "conda" } |
| 23 | + |
| 24 | + - { os: "macOS-latest", python: "3.13", r: "release", backend: "venv" } |
| 25 | + - { os: "macOS-latest", python: "3.13", r: "release", backend: "conda" } |
| 26 | + |
| 27 | + - { os: "ubuntu-latest", python: "3.10", r: "oldrel-1", backend: "venv" } |
| 28 | + - { os: "ubuntu-latest", python: "3.10", r: "oldrel-2", backend: "venv" } |
| 29 | + - { os: "ubuntu-latest", python: "3.10", r: "oldrel-3", backend: "venv" } |
| 30 | + |
21 | 31 | env: |
22 | 32 | GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
23 | 33 | R_KEEP_PKG_SOURCE: yes |
24 | 34 | MPLBACKEND: Agg |
| 35 | + ACRO_USE_CONDA: ${{ matrix.python_backend == 'conda' && 'true' || 'false' }} |
| 36 | + |
25 | 37 | steps: |
26 | 38 | - name: Checkout ACRO |
27 | 39 | uses: actions/checkout@v4 |
| 40 | + |
| 41 | + - name: Setup Miniconda |
| 42 | + if: matrix.backend == 'conda' |
| 43 | + uses: conda-incubator/setup-miniconda@v3 |
| 44 | + with: |
| 45 | + python-version: ${{ matrix.python }} |
| 46 | + auto-activate-base: false |
| 47 | + |
28 | 48 | - name: Setup Python |
29 | 49 | uses: actions/setup-python@v6 |
30 | 50 | with: |
31 | 51 | python-version: ${{ matrix.python }} |
| 52 | + |
32 | 53 | - name: Setup pandoc |
33 | 54 | uses: r-lib/actions/setup-pandoc@v2 |
| 55 | + |
34 | 56 | - name: Setup R |
35 | 57 | uses: r-lib/actions/setup-r@v2 |
36 | 58 | with: |
37 | 59 | r-version: ${{ matrix.r }} |
| 60 | + |
38 | 61 | - name: Install R dependencies |
39 | 62 | uses: r-lib/actions/setup-r-dependencies@v2 |
40 | 63 | with: |
41 | 64 | extra-packages: any::rcmdcheck |
42 | 65 | needs: check |
| 66 | + |
43 | 67 | - name: Check R Package |
44 | 68 | uses: r-lib/actions/check-r-package@v2 |
45 | 69 | with: |
|
0 commit comments