Skip to content

Commit

Permalink
Fix: Missing poetry in "Type-check python" GHA job (#519)
Browse files Browse the repository at this point in the history
* Install poetry in mypy job

* Use poetry to run mypy
  • Loading branch information
TylerHendrickson authored Nov 22, 2024
1 parent 8a38a08 commit 980de04
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 980de04

Please sign in to comment.