Skip to content

Create minimal README.Rmd and update render-readme workflow #3

Create minimal README.Rmd and update render-readme workflow

Create minimal README.Rmd and update render-readme workflow #3

# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
merge_group:
workflow_dispatch:
name: test-coverage
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-coverage:
runs-on: macos-latest
if: "! contains(github.event.head_commit.message, '[ci skip]')"
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
NOT_CRAN: true
steps:
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@v2
with:
version: '1.9'
- name: Cache Julia packages
uses: julia-actions/cache@v2
with:
cache-name: julia-cache-artifacts
cache-compiled: true
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr, local::.
needs: coverage
- name: Install JuliaCall dependencies
run: |
export R_HOME=$(R RHOME)
julia -e 'ENV["R_HOME"] = raw"'"$R_HOME"'"; using Pkg; Pkg.add("RCall"); Pkg.build("RCall")'
shell: bash
- name: Setup Julia dependencies
run: |
forecastbaselines::setup_ForecastBaselines(verbose = TRUE)
shell: Rscript {0}
- name: Test coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: covr::codecov(quiet = FALSE)
shell: Rscript {0}