Skip to content

Commit 6ae8c70

Browse files
authored
Merge a15b940 into a155984
2 parents a155984 + a15b940 commit 6ae8c70

5 files changed

Lines changed: 89 additions & 34 deletions

File tree

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ travisbuildchildren.sh
1212
^\.httr-oauth$
1313
^spare$
1414
^pkgdown$
15+
^\.github$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
#on: push
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
pull_request:
8+
branches:
9+
- main
10+
- master
11+
12+
name: R-CMD-check
13+
14+
jobs:
15+
R-CMD-check:
16+
runs-on: ${{ matrix.config.os }}
17+
18+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
config:
24+
#- {os: windows-latest, r: 'release', rglusenull: "true"}
25+
- {os: macOS-latest, r: 'release', rglusenull: "true"}
26+
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
27+
#- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
28+
29+
env:
30+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
31+
RSPM: ${{ matrix.config.rspm }}
32+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
33+
RGL_USE_NULL: ${{ matrix.config.rglusenull }}
34+
35+
steps:
36+
- uses: actions/checkout@v2
37+
38+
- uses: r-lib/actions/setup-r@master
39+
with:
40+
r-version: ${{ matrix.config.r }}
41+
42+
- uses: r-lib/actions/setup-pandoc@master
43+
44+
- name: Query dependencies
45+
run: Rscript -e "install.packages('remotes')" -e "saveRDS(remotes::dev_package_deps(dependencies = TRUE), 'depends.Rds', version = 2)"
46+
47+
- name: Cache R packages
48+
if: runner.os != 'Windows'
49+
uses: actions/cache@v1
50+
with:
51+
path: ${{ env.R_LIBS_USER }}
52+
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('depends.Rds') }}
53+
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-
54+
55+
- name: Install system dependencies
56+
if: runner.os == 'Linux'
57+
env:
58+
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
59+
run: |
60+
Rscript -e "remotes::install_github('r-hub/sysreqs')"
61+
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
62+
sudo -s eval "$sysreqs"
63+
64+
- name: Install Covr
65+
run: Rscript -e "remotes::install_github('r-lib/covr')"
66+
67+
- name: Build CMTK
68+
run: sh ./build-cmtk.sh
69+
70+
- name: Install dependencies
71+
run: Rscript -e "library(remotes)" -e "update(readRDS('depends.Rds'))" -e "remotes::install_cran('rcmdcheck')"
72+
73+
- name: Check
74+
run: Rscript -e "rcmdcheck::rcmdcheck(args = c('--no-manual', '--as-cran'), error_on = 'error', check_dir = 'check')"
75+
76+
- name: Upload check results
77+
if: failure()
78+
uses: actions/upload-artifact@master
79+
with:
80+
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
81+
path: check
82+
83+
- name: Test coverage
84+
if: matrix.config.os == 'macOS-latest'
85+
run: |
86+
Rscript -e 'covr::codecov(token = "${{secrets.CODECOV_TOKEN}}")'

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![DOI](https://img.shields.io/badge/doi-10.5281%2Fzenodo.10171-blue.svg)](http://dx.doi.org/10.5281/zenodo.10171)
55
[![Release Version](https://img.shields.io/github/release/natverse/nat.svg)](https://github.com/natverse/nat/releases/latest)
66
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/nat)](https://cran.r-project.org/package=nat)
7-
[![Build Status](https://img.shields.io/travis/natverse/nat/master.svg)](https://travis-ci.org/natverse/nat)
7+
[![Build status](https://github.com/natverse/nat/workflows/R-CMD-check/badge.svg)](https://github.com/natverse/nat/actions)
88
[![Coverage Status](https://coveralls.io/repos/natverse/nat/badge.svg?branch=master)](https://coveralls.io/r/natverse/nat?branch=master)
99
[![Docs](https://img.shields.io/badge/docs-100%25-brightgreen.svg)](https://natverse.github.io/nat/reference/)
1010
[![Downloads](http://cranlogs.r-pkg.org/badges/nat?color=brightgreen)](http://www.r-pkg.org/pkg/nat)

0 commit comments

Comments
 (0)