Skip to content

Update README

Update README #44

# CI GitHub Action ... adapted from usethis::use_github_actions()
on:
push:
branches:
- dev_*
- master
pull_request:
branches:
- master
- dev_*
name: GitHub Actions CI
## change if caches needs to be refreshed
env:
cache-version: v1
jobs:
R-CMD-check:

Check failure on line 19 in .github/workflows/GitHub_Actions_CI.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/GitHub_Actions_CI.yaml

Invalid workflow file

You have an error in your yaml syntax on line 19
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: macos-13, r: 'release', not_cran: 'true'}
- {os: macos-12, r: 'oldrel', not_cran: 'true'}
- {os: ubuntu-latest, r: 'devel', not_cran: 'true',}
- {os: ubuntu-latest, r: 'release', not_cran: 'true'}
- {os: ubuntu-latest, r: 'oldrel', not_cran: 'true'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
- uses: r-lib/actions/setup-pandoc@v2
- name: Cache R packages
if: runner.os != 'Windows'
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-
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::rcmdcheck
any::covr
needs: check
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
- name: Test coverage
run: |
covr::codecov(
quiet = FALSE,
clean = TRUE,
token = "${{ secrets.CODECOV_TOKEN }}",
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
shell: Rscript {0}
- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package