-
Notifications
You must be signed in to change notification settings - Fork 55
52 lines (39 loc) · 1.2 KB
/
ci.yaml
File metadata and controls
52 lines (39 loc) · 1.2 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
# Run CI for R using https://eddelbuettel.github.io/r-ci/
name: ci
on:
push:
pull_request:
env:
_R_CHECK_FORCE_SUGGESTS_: "false"
jobs:
ci:
strategy:
matrix:
include:
- { name: container, os: ubuntu-latest, container: rocker/r2u4ci }
- { name: macos, os: macos-latest, openmp: yes }
#- { name: macos, os: macos-latest, openmp: no }
#- { name: ubuntu, os: ubuntu-latest }
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup
uses: eddelbuettel/github-actions/r-ci@master
- name: Configure
run: ./configure; cat src/Makevars
- name: Dependencies
run: ./run.sh install_deps
- name: Test
run: ./run.sh run_tests
- name: Install and Verify on macOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
R CMD INSTALL .
Rscript -e 'RcppArmadillo::armadillo_get_number_of_omp_threads()'
- name: Coverage
if: ${{ matrix.os == 'ubuntu-latest' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: ./run.sh coverage