Tests be ran when a pull request is created. if tests fail, then the pull request cannot be approved. Branch protection rules will also need to be implemented for this purpose.