diff --git a/.ci/test.sh b/.ci/test.sh index 4a1144733df8..3cb25ee10d14 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -13,7 +13,7 @@ source activate $CONDA_ENV cd $BUILD_DIRECTORY -if [[ $TASK == "check-docs" ]]; then +if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then cd $BUILD_DIRECTORY/docs conda install -q -y -n $CONDA_ENV -c conda-forge doxygen pip install --user -r requirements.txt rstcheck @@ -40,7 +40,7 @@ if [[ $TASK == "check-docs" ]]; then exit 0 fi -if [[ $TASK == "lint" ]]; then +if [[ $TRAVIS == "true" ]] && [[ $TASK == "lint" ]]; then conda install -q -y -n $CONDA_ENV \ pycodestyle \ pydocstyle \ diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2c770994b0bf..9955dd73217e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,12 @@ name: GitHub Actions -on: [push] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: test: