Skip to content

tempcnn example

tempcnn example #11

Workflow file for this run

name: openeocraft Unit Tests
on:
pull_request:
branches:
- dev
jobs:
test:
name: Run R Unit Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
- name: Install system dependencies (Linux only)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev
- name: Cache R packages
uses: actions/cache@v3
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ hashFiles('**/DESCRIPTION') }}
restore-keys: |
${{ runner.os }}-r-
- name: Install dependencies
run: |
install.packages("remotes")
remotes::install_deps(dependencies = TRUE, upgrade = "never")
remotes::install_local(".", dependencies = TRUE, upgrade = "never")
shell: Rscript {0}
- name: Run tests
run: |
library(testthat)
test_dir("tests", reporter = "summary")
shell: Rscript {0}