aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-11-22 13:52:03 +0200
committerGravatar GitHub <[email protected]>2020-11-22 13:52:03 +0200
commita8c0e7791bd6fc7ec1a071cfa281851bce4d99ef (patch)
treed22357b90f6c4422361ae58e70028c643edbf2de
parentTry to use flake8 action instead manual run (diff)
Activate Poetry shell before running flake8
-rw-r--r--.github/workflows/forms-backend.yml13
1 files changed, 4 insertions, 9 deletions
diff --git a/.github/workflows/forms-backend.yml b/.github/workflows/forms-backend.yml
index ad68a17..e84d80b 100644
--- a/.github/workflows/forms-backend.yml
+++ b/.github/workflows/forms-backend.yml
@@ -40,18 +40,13 @@ jobs:
if: steps.python_cache.outputs.cache-hit != 'true'
run: |
poetry install
+
+ - name: Activate Poetry virtualenv
+ run: "poetry shell"
- # Commented out during testing other ways
# This implemention allows showing linting errors in PRs under Files tab.
- # - name: Run flake8
- # run: "poetry run flake8 --format='::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s' --verbose"
-
- name: Run flake8
- uses: suo/flake8-github-action@releases/v1
- with:
- checkName: 'lint'
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: "flake8 --format='::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s' --verbose"
build:
name: Build & Push