diff options
author | 2020-11-22 21:05:16 +0200 | |
---|---|---|
committer | 2020-11-22 21:05:16 +0200 | |
commit | 077a2eaf020085bdeba30a5dfc548babc8c3da02 (patch) | |
tree | 21ddce71e4cd089c9fb00d08ccd9d295a7e923ee /.github | |
parent | Add flake8 matchers (diff) |
Use matchers for GitHub Actions workflow
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/forms-backend.yml | 11 |
1 files changed, 9 insertions, 2 deletions
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 |