-
-
Notifications
You must be signed in to change notification settings - Fork 213
78 lines (65 loc) · 1.72 KB
/
ci.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Run CI for R using https://eddelbuettel.github.io/r-ci/
# This file is a slight variant by running a matrix of containers
name: ci
on:
push:
pull_request:
env:
USE_BSPM: "true"
_R_CHECK_FORCE_SUGGESTS_: "false"
jobs:
ci:
runs-on: ubuntu-latest
container:
image: ${{ matrix.cntr }}
strategy:
matrix:
include:
- name: release
cntr: rcpp/ci
r: R
- name: r-4.3
cntr: rcpp/ci-4.3
r: R
- name: r-4.2
cntr: rcpp/ci-4.2
r: R
- name: r-4.1
cntr: rcpp/ci-4.1
r: R
- name: r-4.0
cntr: rcpp/ci-4.0
r: R
- name: r-3.6
cntr: rcpp/ci-3.6
r: R
- name: r-3.5
cntr: rcpp/ci-3.5
r: R
- name: dev
cntr: rcpp/ci-dev
r: RD
steps:
- uses: actions/checkout@v3
#- name: Bootstrap
# run: |
# curl -OLs https://eddelbuettel.github.io/r-ci/run.sh
# chmod 0755 run.sh
# ./run.sh bootstrap
- name: SessionInfo
run: ${{ matrix.r }} -q -e 'sessionInfo()'
- name: Build
run: ${{matrix.r }} CMD build --no-build-vignettes --no-manual .
- name: Check
run: CI=true ${{ matrix.r }} CMD check --no-vignettes --no-manual Rcpp_*.tar.gz
#covr:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Project
# uses: actions/checkout@v3
#
# - name: Container
# run: docker pull rcpp/ci
#
# - name: Coverage
# run: docker run --rm -i -v ${PWD}:/mnt -w /mnt -e CODECOV_TOKEN=${{secrets.CODECOV_TOKEN }} rcpp/ci r -l covr -e 'codecov()'