Skip to content

try to fix R version syntax error #58

try to fix R version syntax error

try to fix R version syntax error #58

Workflow file for this run

name: R-CMD-check
on:
push:
branches:
# - main
# - dev
- code-cov
pull_request:
branches:
# - main
# - dev
- code-cov
jobs:
test-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

Check failure on line 20 in .github/workflows/R-CMD-check.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/R-CMD-check.yaml

Invalid workflow file

You have an error in your yaml syntax on line 20
- name: Setup R
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.0.5'
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
- name: Install R dependencies
run: |
Rscript -e "options(warn = 2)"
Rscript -e "install.packages(c('remotes', 'covr'))"
Rscript -e "remotes::install_github('Katsevich-Lab/sceptredata')"
Rscript -e "remotes::install_deps(dependencies=TRUE)"
- name: Generate coverage report
run: Rscript -e "covr::codecov(quiet = FALSE)"
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]