This repository contains the source code for the implementation of the validation rules that are enforced on forecast submissions in the form of pull requests to the covid19-forecast-hub repository.
The main entry point for the code is main.py
. This script is intended to be run on a Github Actions CI runner. Using the default environment variables set by Github Actions on the worker, the script identifies the PR that it is being run against.
Using this information, the script downloads the files modified into a temporary directory and runs forecast and, if applicable, metadata validations on these files.
The script also adds appropriate labels to the PR based on the files changed. The main validations code is present inside the forecast_validation
directory (a python module).