diff options
-rw-r--r-- | .github/workflows/build.yml | 11 | ||||
-rwxr-xr-x | scripts/travis-before-install.sh | 7 | ||||
-rwxr-xr-x | scripts/travis-build.sh | 4 |
3 files changed, 12 insertions, 10 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b08ab4c9..9af12a89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,17 @@ on: pull_request: jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/setup-python@v1 + with: + python-version: '3.x' + - uses: actions/checkout@v1 + - name: install tools + run: pip3 install flake8==3.7.8 + - run: flake8 build: name: Build runs-on: ${{ matrix.os }} diff --git a/scripts/travis-before-install.sh b/scripts/travis-before-install.sh index fc003f5a..f5a430b2 100755 --- a/scripts/travis-before-install.sh +++ b/scripts/travis-before-install.sh @@ -15,11 +15,6 @@ # limitations under the License. # -if [[ ${TRAVIS_OS_NAME} = "linux" ]]; then - pip install --user flake8 -elif [[ ${TRAVIS_OS_NAME} = "osx" ]]; then +if [[ ${TRAVIS_OS_NAME} = "osx" ]]; then brew update -else - echo "unknown TRAVIS_OS_NAME: ${TRAVIS_OS_NAME}" - exit 1 fi diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh index 90bbdc01..8e49667d 100755 --- a/scripts/travis-build.sh +++ b/scripts/travis-build.sh @@ -21,10 +21,6 @@ set -o errexit SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd -P)" source "${SCRIPT_DIR}/travis-common.sh" -if [[ ${TRAVIS_OS_NAME} = "linux" ]]; then - flake8 -fi - if [[ ${COMPILER} = "clang" && -z ${SANITIZER:-} ]]; then # Test building without GTest submodule make clang-debug-no-tests |