Skip to content

Commit

Permalink
Merge pull request #33 from tcarleton/ci
Browse files Browse the repository at this point in the history
Add rworkflows CI/CD
  • Loading branch information
anna-boser authored Aug 20, 2024
2 parents 6e0b623 + 94eb02e commit 6b62329
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 550 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
^README\.Rmd$
^LICENSE\.md$
^data-raw$
^doc$
^Meta$
57 changes: 57 additions & 0 deletions .github/workflows/rworkflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: rworkflows
'on':
push:
branches:
- master
- main
- devel
- RELEASE_**
pull_request:
branches:
- master
- main
- devel
- RELEASE_**
jobs:
rworkflows:
permissions: write-all
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
container: ${{ matrix.config.cont }}
strategy:
fail-fast: ${{ false }}
matrix:
config:
# - os: ubuntu-latest
# bioc: devel
# r: auto
# cont: ghcr.io/bioconductor/bioconductor_docker:devel
# rspm: ~
- os: macOS-latest
bioc: release
r: auto
cont: ~
rspm: ~
- os: windows-latest
bioc: release
r: auto
cont: ~
rspm: ~
steps:
- uses: neurogenomics/rworkflows@master
with:
run_bioccheck: ${{ false }}
run_rcmdcheck: ${{ true }}
as_cran: ${{ true }}
run_vignettes: ${{ false }}
has_testthat: ${{ true }}
run_covr: ${{ true }}
run_pkgdown: ${{ true }}
has_runit: ${{ false }}
has_latex: ${{ false }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run_docker: ${{ false }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
runner_os: ${{ runner.os }}
cache_version: cache-v1
docker_registry: ghcr.io
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
.RData
.Ruserdata
inst/doc
/doc/
/Meta/
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Imports:
stringr,
terra
Suggests:
climateR,
knitr,
rmarkdown,
testthat (>= 3.0.0),
Expand Down
3 changes: 2 additions & 1 deletion vignettes/data_sources.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
remotes::install_github("mikejohnson51/climateR")
```

# Introduction
Expand Down Expand Up @@ -48,7 +49,7 @@ gridmet_pr <- climateR::getGridMET(
varname = "pr",
startDate = "2010-01-01",
endDate = "2010-12-31"
)[[1]] %>%
)[[1]] |>
raster::stack()
```

Expand Down
Loading

0 comments on commit 6b62329

Please sign in to comment.