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