From 45d5ca3570942ec9963748ce28bcc48c5bc489d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Sat, 26 Sep 2020 03:36:32 +0200 Subject: [PATCH] A little tuning --- .github/workflows/python-sanity.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-sanity.yaml b/.github/workflows/python-sanity.yaml index ac124d65..af86c59c 100644 --- a/.github/workflows/python-sanity.yaml +++ b/.github/workflows/python-sanity.yaml @@ -1,6 +1,6 @@ name: Python sanity -on: [push, pull_request] +on: [pull_request] jobs: build: @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [2.7, 3.6, 3.7, 3.8] + python-version: [2.7, 3.8] steps: - uses: actions/checkout@v2 @@ -26,7 +26,9 @@ jobs: - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 . --select=E9,F63,F7,F82 \ + | awk -F: '{ gsub(/^[ \t]+/,"",$4); print "::error file=" $1 ",line=" $2 ",col=" $3 "::" $4 }' + # exit-zero treats all errors as warnings. flake8 . --exit-zero \ | awk -F: '{ gsub(/^[ \t]+/,"",$4); print "::error file=" $1 ",line=" $2 ",col=" $3 "::" $4 }'