-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.13 KB
/
r.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
name: 🌱
on:
push:
branches: "main"
pull_request:
branches: "main"
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
r-version: "4.3.1"
- name: Install R::devtools dependencies on Ubuntu
run: |
sudo apt install -y libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev
- name: Install dependencies on R
run: |
install.packages(c("devtools", "testthat", "vcfR", "doParallel", "foreach", "txtplot", "glmnet", "BGLR", "sommer"))
shell: Rscript {0}
- name: Install simquantgen
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
devtools::install_github("jeffersonfparil/simquantgen")
shell: Rscript {0}
- name: Test
run: |
library(testthat)
library(vcfR)
library(glmnet)
library(BGLR)
library(sommer)
library(txtplot)
library(simquantgen)
devtools::load_all()
devtools::document()
devtools::test()
shell: Rscript {0}