Skip to content

.github/workflows/do_prediction_lasso.yml #524

.github/workflows/do_prediction_lasso.yml

.github/workflows/do_prediction_lasso.yml #524

on:
workflow_dispatch:
schedule:
- cron: "0 20 * * *"
# push:
jobs:
build:
runs-on: ubuntu-22.04
container:
image: eco4cast/rocker-neon4cast
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install R packages
run: R -e 'source("install.R")'
- name: install extra R packages
run: R -e 'install.packages(c("tidymodels", "bundle", "glmnet"))'
# Point to the right path, run the right Rscript command
- name: Run automatic prediction file (lasso)
run: Rscript ./Generate_forecasts/tg_lasso/run_forecast.R
- name: Run automatic prediction file (lasso all sites)
run: Rscript ./Generate_forecasts/tg_lasso/run_forecast.R