Skip to content

Commit 83085b5

Browse files
authored
analyze-project: Use a custom shell to run the venv's python (#35)
1 parent d08837a commit 83085b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

analyze-project/action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ runs:
5959
- name: Check for mypy and pyright installation
6060
id: check_tools
6161
run: |
62-
poetry run python - <<EOF
6362
import os
6463
from importlib.metadata import version, PackageNotFoundError
6564
@@ -73,9 +72,8 @@ runs:
7372
with open(os.environ["GITHUB_OUTPUT"], "a") as output:
7473
print(f"mypy={is_installed('mypy')}", file=output)
7574
print(f"pyright={is_installed('pyright')}", file=output)
76-
EOF
7775
working-directory: ${{ inputs.project-directory }}
78-
shell: bash
76+
shell: poetry run python {0}
7977
- name: Echo check_tools outputs
8078
run: |
8179
echo "mypy installed: ${{ steps.check_tools.outputs.mypy }}"

0 commit comments

Comments
 (0)