[ci] improve optional checks (#3826)
[ci] improve optional checks (#3826)


henry0312/LightGBM,microsoft/LightGBM,henry0312/LightGBM,henry0312/LightGBM,microsoft/LightGBM,microsoft/LightGBM,microsoft/LightGBM,henry0312/LightGBM,microsoft/LightGBM,henry0312/LightGBM