-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (96 loc) · 3.15 KB
/
future.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
name: future
on:
schedule:
- cron: "0 09 * * 1"
workflow_dispatch:
jobs:
future:
runs-on: ubuntu-22.04
name: future
env:
RSPM: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
repository: "workflowr/workflowr"
- name: Install system dependencies
run: |
sudo apt-get install -y software-properties-common
sudo apt-get update
sudo apt-get install -y \
libcurl4-openssl-dev \
libgit2-dev \
libpng-dev \
libsm6 \
libssl-dev \
libxml2-dev \
libxt6 \
netbase \
python3 \
python3-matplotlib \
qpdf \
zlib1g-dev
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "2.19.2"
- uses: r-lib/actions/setup-r@v2
id: install-r
with:
r-version: "devel"
- name: Restore R package cache
uses: actions/cache@v3
with:
path: ${{ env.R_LIBS_USER }}/*
key: ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('DESCRIPTION') }}
restore-keys: ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}-1-
- name: Install dependencies
run: |
print(getOption("repos"))
if (!requireNamespace("remotes", quietly = TRUE)) {
install.packages("remotes")
}
library("remotes")
install_github("r-lib/callr")
install_github("mdlincoln/clipr")
install_github("r-lib/fs")
install_github("wrathematics/getPass")
install_github("ropensci/git2r")
install_github("tidyverse/glue")
install_github("r-lib/httr")
install_github("yihui/knitr")
install_github("rstudio/miniUI")
install_github("rstudio/reticulate")
install_github("rstudio/rmarkdown")
install_github("krlmlr/rprojroot")
install_github("rstudio/rstudioapi")
install_github("r-lib/sessioninfo")
install_github("rstudio/shiny")
install_github("tidyverse/stringr")
install_github("r-lib/testthat")
install_github("edwindj/whisker")
install_github("r-lib/withr")
install_github("viking/r-yaml")
shell: Rscript {0}
- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}
- name: Check
env:
_R_CHECK_CRAN_INCOMING_: false
run: |
R CMD build .
R CMD check --as-cran --no-examples --no-manual *tar.gz
- name: Show testthat output
if: always()
run: find workflowr.Rcheck -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
with:
name: future-results
path: workflowr.Rcheck