From 980de046df9e765e40839c3657f711233cf7a309 Mon Sep 17 00:00:00 2001 From: Tyler Hendrickson <1851017+TylerHendrickson@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:42:59 -0600 Subject: [PATCH] Fix: Missing poetry in "Type-check python" GHA job (#519) * Install poetry in mypy job * Use poetry to run mypy --- .github/workflows/qa.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 93fefcbe..fc928d2a 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -301,6 +301,8 @@ jobs: ref: ${{ inputs.ref }} show-progress: 'false' persist-credentials: 'false' + - name: Install poetry + run: pipx install poetry - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: python-version-file: 'python/pyproject.toml' @@ -316,8 +318,9 @@ jobs: if: steps.changed-py-files.outputs.any_changed == 'true' env: CHANGED_PY_FILES: ${{ steps.changed-py-files.outputs.all_changed_files }} - run: mypy $CHANGED_PY_FILES --ignore-missing-imports - + run: | + poetry install --no-interaction --no-ansi + poetry run mypy $CHANGED_PY_FILES --ignore-missing-imports tflint: name: Lint terraform