-
Notifications
You must be signed in to change notification settings - Fork 0
134 lines (123 loc) · 3.89 KB
/
R-CMD-check-fedora.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
schedule:
- cron: 0 0 * * 1 # schedule to run at midnight on Monday each week
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
name: Fedora
env:
OMP_THREAD_LIMIT: 2
KMP_DEVICE_THREAD_LIMIT: 2
_R_CHECK_SUGGESTS_ONLY_: true
_R_CHECK_NO_RECOMMENDED_: true
_R_CHECK_DOC_SIZES2_: true
_R_CHECK_DEPRECATED_DEFUNCT_: true
_R_CHECK_SCREEN_DEVICE_: warn
_R_CHECK_REPLACING_IMPORTS_: true
_R_CHECK_TOPLEVEL_FILES_: true
_R_CHECK_DOT_FIRSTLIB_: true
_R_CHECK_RD_LINE_WIDTHS_: true
_R_CHECK_S3_METHODS_NOT_REGISTERED_: true
_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_: true
_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_: true
_R_CHECK_NATIVE_ROUTINE_REGISTRATION_: true
_R_CHECK_FF_CALLS_: registration
_R_CHECK_PRAGMAS_: true
_R_CHECK_COMPILATION_FLAGS_: true
_R_CHECK_R_DEPENDS_: true
_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_: true
_R_CHECK_SHLIB_OPENMP_FLAGS_: true
_R_CHECK_BROWSER_NONINTERACTIVE_: true
_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_: true
_R_CHECK_CODE_DATA_INTO_GLOBALENV_: true
_R_CHECK_PKG_SIZES_: true
_R_CHECK_LIMIT_CORES_: true
_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_: true
_R_CHECK_AUTOCONF_: true
_R_CHECK_THINGS_IN_CHECK_DIR_: true
_R_CHECK_THINGS_IN_TEMP_DIR_: true
_R_CHECK_THINGS_IN_TEMP_DIR_EXCLUDE_: "^ompi"
_R_CHECK_BASHISMS_: true
_R_CHECK_ORPHANED_: true
_R_CHECK_DEPENDS_ONLY_DATA_: true
_R_CHECK_XREFS_PKGS_ARE_DECLARED_: true
_R_CHECK_MATRIX_DATA_: true
_R_CHECK_RD_VALIDATE_RD2HTML_: true
_R_CHECK_RD_MATH_RENDERING_: true
jobs:
R-CMD-check:
name: Fedora (devel)
runs-on: ubuntu-latest
container:
image: docker://rhub/fedora-clang-devel:latest
options: --user root
env:
_R_REMOTES_NO_ERRORS_FROM_WARNINGS_: true
_R_CHECK_FORCE_SUGGESTS_: false
_R_CHECK_TIMINGS_: 10
_R_CHECK_CRAN_INCOMING_REMOTE_: false
_R_CHECK_LIMIT_CORES_: true
_R_CHECK_LICENSE_: true
OMP_THREAD_LIMIT: 2
KMP_DEVICE_THREAD_LIMIT: 2
KMP_TEAMS_THREAD_LIMIT: 2
KMP_ALL_THREADS: 2
NOT_CRAN: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CI: true
steps:
- uses: actions/checkout@v2
- name: Setup path
run: |
echo "/opt/R-devel/bin" >> $GITHUB_PATH
- name: Install system dependencies
run: |
echo $PATH
dnf install -y \
mpfr-devel \
automake \
fftw-devel \
gmp-devel \
openssl-devel \
zlib-devel \
pandoc \
geos-devel \
make \
gdal \
libxml2-devel \
cmake \
proj-devel \
sqlite-devel \
gdal-devel \
libicu-devel \
udunits2-devel \
coin-or-SYMPHONY-devel \
git-all
- name: Install dependencies
run: |
options(repos = "https://cloud.r-project.org/")
install.packages("remotes")
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}
- name: Session information
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}
- name: Check
run: |
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", "--no-build-vignettes"), error_on = "warning", check_dir = "check")
shell: Rscript {0}
- name: Show testthat output
if: always()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash