-
Notifications
You must be signed in to change notification settings - Fork 1
95 lines (84 loc) · 2.54 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
# 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
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