From 077a2eaf020085bdeba30a5dfc548babc8c3da02 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sun, 22 Nov 2020 21:05:16 +0200 Subject: Use matchers for GitHub Actions workflow --- .github/workflows/forms-backend.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/forms-backend.yml b/.github/workflows/forms-backend.yml index ffc0eb7..4560f7b 100644 --- a/.github/workflows/forms-backend.yml +++ b/.github/workflows/forms-backend.yml @@ -41,9 +41,16 @@ jobs: run: | poetry install - # This implemention allows showing linting errors in PRs under Files tab. + # This allows GitHub to detect errors and relay them to PR Files tab + - name: Add flake8 matchers + run: echo "::add-matcher::./github/flake8-matchers.json" + - name: Run flake8 - run: "poetry run flake8 --format='::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s' --verbose" + run: "poetry run flake8" + + # There may some bad behaviours, so remove them + - name: Remove flake8 matchers + run: echo "::remove-matcher owner=flake8-error::" && echo "::remove-matcher owner=flake8-warning::" build: name: Build & Push -- cgit v1.2.3