From a8c0e7791bd6fc7ec1a071cfa281851bce4d99ef Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sun, 22 Nov 2020 13:52:03 +0200 Subject: Activate Poetry shell before running flake8 --- .github/workflows/forms-backend.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to '.github/workflows') 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 -- cgit v1.2.3