.github/workflows/do_prediction_randfor.yml #406
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
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", "ranger"))' | |
# Point to the right path, run the right Rscript command | |
- name: Update observed meterological data | |
run: Rscript ./Generate_forecasts/noaa_downloads/write_noaa_past_meteo.R | |
- name: Run automatic prediction file (random forest) | |
run: Rscript ./Generate_forecasts/tg_randfor/forecast_model.R | |
- name: Run automatic prediction file (random forest all sites) | |
run: Rscript ./Generate_forecasts/tg_randfor_all_sites/forecast_model.R | |
- name: Run automatic prediction file (random forest, parameter and process uncertainty) | |
run: Rscript ./Generate_forecasts/tg_randfor_parmens/forecast_model.R | |