spatial-forecast #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
schedule: | |
- cron: '0 1 1 * *' # runs on first of month | |
workflow_dispatch: | |
name: spatial-forecast | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
container: rocker/geospatial:latest | |
steps: | |
- uses: actions/[email protected] | |
- name: system deps | |
run: sudo apt-get update && sudo apt-get -y install cargo | |
- name: Install packages from renv.lock (with cache) | |
uses: r-lib/actions/setup-renv@v2 | |
with: | |
cache-version: 3 | |
- name: | |
shell: Rscript {0} | |
run: install.packages("quarto") | |
- name: Run example | |
shell: Rscript {0} | |
run: | | |
quarto::quarto_render("spatial_forecast_example.qmd") |