-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
* Update package level documentation * Update DESCRIPTION file * Re-build documentation * Remove TravisCI * Add R CMD Check * Add GitHub Actions * Update README format
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
on: [push, pull_request] | ||
|
||
name: R-CMD-check | ||
|
||
jobs: | ||
R-CMD-check: | ||
runs-on: ${{ matrix.config.os }} | ||
|
||
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- { os: windows-latest, r: 'release'} | ||
- { os: windows-latest, r: 'devel'} | ||
- { os: macOS-latest, r: 'release'} | ||
- { os: macOS-latest, r: 'devel'} | ||
- { os: ubuntu-16.04, r: '3.5', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"} | ||
- { os: ubuntu-16.04, r: 'release', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"} | ||
|
||
env: | ||
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | ||
CRAN: ${{ matrix.config.cran }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- uses: r-lib/actions/setup-r@master | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
|
||
- uses: r-lib/actions/setup-pandoc@master | ||
|
||
- name: Cache R packages | ||
if: runner.os != 'Windows' | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ env.R_LIBS_USER }} | ||
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('DESCRIPTION') }} | ||
|
||
- name: Install system dependencies | ||
if: runner.os == 'Linux' | ||
env: | ||
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc | ||
run: | | ||
Rscript -e "install.packages('remotes')" -e "remotes::install_github('r-hub/sysreqs')" | ||
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))") | ||
sudo -s eval "$sysreqs" | ||
- name: Install dependencies | ||
run: Rscript -e "install.packages('remotes')" -e "remotes::install_deps(dependencies = TRUE)" -e "remotes::install_cran('rcmdcheck')" | ||
|
||
- name: Check | ||
run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning', check_dir = 'check')" | ||
|
||
- name: Upload check results | ||
if: failure() | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: ${{ runner.os }}-r${{ matrix.config.r }}-results | ||
path: check | ||
|
||
#- name: Test coverage | ||
# if: matrix.config.os == 'macOS-latest' && matrix.config.r == 'release' | ||
# run: | | ||
# Rscript -e 'covr::codecov(token = "${{secrets.CODECOV_TOKEN}}")' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
on: | ||
issue_comment: | ||
types: [created] | ||
name: Commands | ||
jobs: | ||
document: | ||
if: startsWith(github.event.comment.body, '/document') | ||
name: document | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: r-lib/actions/pr-fetch@master | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: r-lib/actions/setup-r@master | ||
- name: Install dependencies | ||
run: Rscript -e 'install.packages(c("remotes", "roxygen2"))' -e 'remotes::install_deps(dependencies = TRUE)' | ||
- name: Document | ||
run: Rscript -e 'roxygen2::roxygenise()' | ||
- name: commit | ||
run: | | ||
git add man/\* NAMESPACE | ||
git commit -m 'Document' | ||
- uses: r-lib/actions/pr-push@master | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
style: | ||
if: startsWith(github.event.comment.body, '/style') | ||
name: document | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: r-lib/actions/pr-fetch@master | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: r-lib/actions/setup-r@master | ||
- name: Install dependencies | ||
run: Rscript -e 'install.packages("styler")' | ||
- name: style | ||
run: Rscript -e 'styler::style_pkg()' | ||
- name: commit | ||
run: | | ||
git add \*.R | ||
git commit -m 'style' | ||
- uses: r-lib/actions/pr-push@master | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
Package: ghapi3 | ||
Title: GitHub v3 API Implementation | ||
Version: 0.0.1 | ||
Authors@R: c(person("James", "Balamuta", | ||
email = "balamut2@illinois.edu", role = c("aut", "cre", "cph")), | ||
person("GitHub", "Inc.", email = "support@github.com", role = c("cph"))) | ||
Description: Provides access to GitHub API v3.0 using the gh package backend. | ||
URL: https://github.com/coatless/ghapi | ||
BugReports: https://github.com/coatless/ghapi/issues | ||
Authors@R: c( | ||
person("James", "Balamuta", | ||
email = "balamut2@illinois.edu", | ||
role = c("aut", "cre", "cph"), | ||
comment = c(ORCID = "0000-0003-2826-8458")), | ||
person("GitHub", "Inc.", | ||
email = "support@github.com", role = c("cph")) | ||
) | ||
Description: Provides access to select GitHub API v3.0 endpoints using | ||
the 'gh' package backend. | ||
License: GPL (>= 2) | ||
URL: https://github.com/coatless/ghapi3 | ||
BugReports: https://github.com/coatless/ghapi3/issues | ||
Depends: R (>= 3.4.0) | ||
Imports: gh | ||
License: GPL (>= 2) | ||
Encoding: UTF-8 | ||
LazyData: true | ||
RoxygenNote: 6.1.1 | ||
Suggests: covr, | ||
testthat | ||
Encoding: UTF-8 | ||
LazyData: true | ||
RoxygenNote: 7.0.2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# ghapi3 0.0.1 | ||
|
||
## Deployment | ||
|
||
- CI is done using GitHub Actions. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#' @keywords internal | ||
#' @details | ||
#' This package requires users have access to a GitHub Personal Access Token (PAT) | ||
"_PACKAGE" | ||
|
||
# The following block is used by usethis to automatically manage | ||
# roxygen namespace tags. Modify with care! | ||
## usethis namespace: start | ||
## usethis namespace: end | ||
NULL |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.