Update README.md #739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: R-CMD-check-prolfqua | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
R_LIBS_SITE: '/home/runner/work/_temp/Library/' | |
on: | |
push: | |
branches: [ Modelling2R6 ] | |
pull_request: | |
branches: [ Modelling2R6 ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
r-version: [4.4.0] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up R ${{ matrix.r-version }} | |
uses: r-lib/actions/setup-r@v1 | |
with: | |
r-version: ${{ matrix.r-version }} | |
- name: Install Linux packages | |
run: sudo apt-get install -y unzip curl libcurl4-openssl-dev libicu-dev pandoc wget unzip texlive texlive-latex-extra texlive-fonts-extra texlive-xetex pandoc-citeproc lmodern | |
- name: install remotes | |
run: install.packages(c("remotes","rcmdcheck","covr","ggpubr")) | |
shell: Rscript {0} | |
- name: install local prolfqua | |
run: remotes::install_local('.', dependencies = TRUE) | |
shell: Rscript {0} | |
- name: rcmdcheck::rcmdcheck | |
run: rcmdcheck::rcmdcheck(error_on = "never", check_dir = "check") | |
shell: Rscript {0} | |
- name: codecov | |
run: covr::codecov(type = "all", token=Sys.getenv('CODECOV_TOKEN')) | |
shell: Rscript {0} | |
- name: List files in home directory | |
run: find $R_LIBS_SITE -type f > files.txt | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: files | |
path: files.txt | |
if-no-files-found: warn | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: prolfqua CI Rcheck directory | |
path: check/prolfqua.Rcheck | |
if-no-files-found: warn | |
# - uses: actions/upload-artifact@v2 | |
# with: | |
# name: R_LIBS_SITE directory | |
# path: /home/runner/work/_temp/Library/ | |
# if-no-files-found: warn |