-
Notifications
You must be signed in to change notification settings - Fork 9
76 lines (65 loc) · 2.38 KB
/
build-checks-release.yml
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
name: build-checks-release
on:
push:
branches: [ devel ]
pull_request:
branches: [ devel ]
jobs:
R-CMD-check:
runs-on: ubuntu-latest
container: rocker/r-ver:4.2
steps:
- uses: actions/checkout@v2
- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}
- name: Install system requirements
run: |
apt-get update
apt-get install -y --no-install-recommends apt-utils
apt-get install -y --no-install-recommends zlib1g-dev libfftw3-dev libxml2-dev libxt-dev curl pandoc-citeproc libproj-dev libgdal-dev pandoc libmagick++-dev bzip2
apt-get clean
rm -rf /var/lib/apt/ilists/*
- name: Install dependencies
run: |
install.packages("BiocManager")
remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories(), Ncpu = 2L)
BiocManager::install("matrixStats", force = TRUE)
shell: Rscript {0}
- name: Find PhantomJS path
id: phantomjs
run: |
echo "::set-output name=path::$(Rscript -e 'cat(shinytest:::phantom_paths()[[1]])')"
- name: Cache PhantomJS
uses: actions/cache@v2
with:
path: ${{ steps.phantomjs.outputs.path }}
key: ${{ matrix.config.os }}-phantomjs
restore-keys: ${{ matrix.config.os }}-phantomjs
- name: Install PhantomJS
run: >
Rscript
-e "if (!shinytest::dependenciesInstalled()) shinytest::installDependencies()"
- name: Check
run: |
install.packages("rcmdcheck")
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}
- name: BiocCheck
run: |
BiocManager::install("BiocCheck")
BiocCheck::BiocCheck(".")
shell: Rscript {0}
- name: Test coverage
run: |
remotes::install_cran(c("covr"))
covr::codecov(token = "${{secrets.CODECOV_TOKEN}}")
shell: Rscript {0}
- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}