Skip to content

Commit

Permalink
setup cyclones gha workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestguevarra committed Aug 5, 2024
1 parent 2510fbd commit bc1fc0e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test-targets-cyclones.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: test targets cyclones

on:
pull_request:
branches: [main, master]
workflow_dispatch:
branches:
- '*'

jobs:
test-targets-cyclones:
runs-on: ubuntu-latest
container: rocker/tidyverse:4.4.1
steps:
- uses: actions/checkout@v4

- name: Install system dependencies
run: |
apt-get update && apt-get install -y --no-install-recommends \
libxt6 libglpk-dev libpoppler-cpp-dev libmagick++-dev \
libtesseract-dev libleptonica-dev tesseract-ocr-eng
- name: Install packages from renv.lock (with cache)
if: ${{ !env.ACT }}
uses: r-lib/actions/setup-renv@v2
with:
cache-version: 2

- name: Install packages from renv.lock (local, no cache)
if: ${{ env.ACT }}
run: |
renv::restore()
shell: Rscript {0}

- name: Run workflow
run: |
targets::tar_make(script = "_targets_cyclones.R")
shell: Rscript {0}

0 comments on commit bc1fc0e

Please sign in to comment.