From f5e516493ee34525f0560c831482473f59c2b2cc Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Tue, 23 Jun 2020 01:18:32 +0300 Subject: [PATCH] [ci][docs] added GitHub Actions badge and simplified condition in config (#3179) * added GitHub Actions badge * simplified condition in config --- .github/workflows/main.yml | 4 ++-- README.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f1dc59d07f7..87eeb6548de2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -99,12 +99,12 @@ jobs: $GITHUB_WORKSPACE/.ci/setup.sh $GITHUB_WORKSPACE/.ci/test.sh - name: Use conda on Windows - if: matrix.os == 'windows-latest' || matrix.os == 'windows-2016' || matrix.os == 'windows-2019' + if: startsWith(matrix.os, 'windows') uses: goanpeca/setup-miniconda@v1 with: auto-update-conda: false - name: Setup and run tests on Windows - if: matrix.os == 'windows-latest' || matrix.os == 'windows-2016' || matrix.os == 'windows-2019' + if: startsWith(matrix.os, 'windows') shell: pwsh -command ". {0}" run: | $env:BUILD_SOURCESDIRECTORY = $env:GITHUB_WORKSPACE diff --git a/README.md b/README.md index a6bc3916b5c5..9399344eb378 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ LightGBM, Light Gradient Boosting Machine ========================================= +[![GitHub Actions Build Status](https://github.com/microsoft/LightGBM/workflows/GitHub%20Actions/badge.svg?branch=master)](https://github.com/microsoft/LightGBM/actions) [![Azure Pipelines Build Status](https://lightgbm-ci.visualstudio.com/lightgbm-ci/_apis/build/status/Microsoft.LightGBM?branchName=master)](https://lightgbm-ci.visualstudio.com/lightgbm-ci/_build/latest?definitionId=1) [![Appveyor Build Status](https://ci.appveyor.com/api/projects/status/1ys5ot401m0fep6l/branch/master?svg=true)](https://ci.appveyor.com/project/guolinke/lightgbm/branch/master) [![Travis Build Status](https://travis-ci.org/microsoft/LightGBM.svg?branch=master)](https://travis-ci.org/microsoft/LightGBM)