Skip to content

Commit

Permalink
Update test_end_to_end.sh (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
damonbayer authored Feb 11, 2025
1 parent c6e0fc1 commit df353de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipelines/tests/create_more_model_test_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# remaining parts of the pipeline on the fake output.
# In the future, the pipeline script should be updated, and this script should
# be deleted.
library(tidyverse)
library(purrr)
library(readr)
library(dplyr)
library(fs)
library(glue)
try(source("hewr/R/process_state_forecast.R"))
Expand Down
7 changes: 7 additions & 0 deletions pipelines/tests/test_end_to_end.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ echo "TEST-MODE: pipeline runs complete for all location/disease pairs."
echo "TEST-MODE: Extending tests for H and HE models..."
Rscript pipelines/tests/create_more_model_test_data.R

if [ $? -ne 0 ]; then
echo "TEST-MODE FAIL: Creating more model test data failed"
exit 1
else
echo "TEST-MODE: Finished creating more model test data"
fi

echo "TEST-MODE: Running batch postprocess..."

python pipelines/postprocess_forecast_batches.py \
Expand Down

0 comments on commit df353de

Please sign in to comment.