Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulthran committed Dec 13, 2023
1 parent e37c84a commit e4d8141
Show file tree
Hide file tree
Showing 12 changed files with 688 additions and 551 deletions.
13 changes: 9 additions & 4 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
^.*\.Rproj$
^\.Rproj\.user$
^data-raw$
^README\.Rmd$
^.*\.Rproj$
^\.Rproj\.user$
^data-raw$
^README\.Rmd$
^\.github$
^codecov\.yml$
^_pkgdown\.yml$
^docs$
^pkgdown$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
46 changes: 46 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

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: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-pandoc@v1

- uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: rcmdcheck

- uses: r-lib/actions/check-r-package@v1
26 changes: 26 additions & 0 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Super-Linter

on:
pull_request:
branches: [ master, main ]
push:
branches: [ master, main ]

jobs:
lint:
name: Lint Code Base
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

VALIDATE_R_LINTR: true

FILTER_REGEX_INCLUDE: R/.*|tests/.*\.R
30 changes: 30 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: test-coverage

jobs:
test-coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: covr

- name: Test coverage
run: covr::codecov()
shell: Rscript {0}
14 changes: 7 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
*.Rproj

.DS_store
.Rproj.user
.Rhistory
.RData
.Ruserdata
*.Rproj

.DS_store
69 changes: 35 additions & 34 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
Package: adonisplus
Type: Package
Title: Bonus material for the adonis function
Version: 0.2.0
Authors@R:
c(person(given = "Ceylan",
family = "Tanes",
email = "[email protected]",
role = c("aut", "cre")),
person(given = "Kyle",
family = "Bittinger",
email = "[email protected]",
role = c("aut")))
Description: Contains a tidy method for adonis results, custom permutation
functions, and a version of adonis for repeated measures designs.
License: GPL-3 + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.3
Imports:
generics (>= 0.0.2),
rlang,
vegan,
usedist,
dplyr (>= 1.0.0),
tibble (>= 3.0.0),
ape,
magrittr,
ggplot2,
stringr
Depends:
R (>= 2.10)
Suggests:
testthat
Package: adonisplus
Type: Package
Title: Bonus material for the adonis function
Version: 0.2.0
Authors@R:
c(person(given = "Ceylan",
family = "Tanes",
email = "[email protected]",
role = c("aut", "cre")),
person(given = "Kyle",
family = "Bittinger",
email = "[email protected]",
role = c("aut")))
Description: Contains a tidy method for adonis results, custom permutation
functions, and a version of adonis for repeated measures designs.
License: GPL-3 + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.3
Imports:
generics (>= 0.0.2),
rlang,
vegan,
usedist,
dplyr (>= 1.0.0),
tibble (>= 3.0.0),
ape,
magrittr,
ggplot2,
stringr
Depends:
R (>= 2.10)
Suggests:
covr,
testthat
Loading

0 comments on commit e4d8141

Please sign in to comment.