Skip to content
Snippets Groups Projects
Unverified Commit 5f0ff778 authored by Lavinia Baumstark's avatar Lavinia Baumstark Committed by GitHub
Browse files

Merge pull request #301 from tscheypidi/develop

replaced TravisCI with GitHubActions
parents 3465c6bc e7ac9b5d
No related branches found
No related tags found
No related merge requests found
*.html
on:
push:
branches:
- main
- master
- develop
pull_request:
branches:
- main
- master
- develop
name: check
jobs:
check:
runs-on: ubuntu-20.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
- name: Query dependencies
run: |
saveRDS("gms", ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}
- name: Cache R packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
- name: Install R dependencies
run: |
repos <- c("https://cloud.r-project.org","https://rse.pik-potsdam.de/r/packages/")
install.packages(c("remotes"), repos=repos)
remotes::install_cran("gms", repos=repos)
shell: Rscript {0}
- name: codeCheck
run: null <- gms::codeCheck(strict=TRUE)
shell: Rscript {0}
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
os: linux
dist: xenial
repos:
CRAN: https://cloud.r-project.org
PIK: https://rse.pik-potsdam.de/r/packages/
cache: packages
latex: false
pandoc: false
r_packages:
- gms
install:
- Rscript -e "if(!requireNamespace('gms')) install.packages('gms')"
script:
- Rscript -e "null <- gms::codeCheck(strict=TRUE)"
# REMIND - REgional Model of INvestments and Development
[![CodeCheck Status](https://github.com/remindmodel/remind/workflows/check/badge.svg)](https://github.com/remindmodel/remind/actions)
<https://www.pik-potsdam.de/research/transformation-pathways/models/remind>
## WHAT IS REMIND?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment