From 75f2a95045c0cd9cc20ddbfd46c6e495c1768c4a Mon Sep 17 00:00:00 2001 From: Daniel Ciborowski Date: Tue, 4 Jul 2023 15:06:54 -0400 Subject: [PATCH] fix: Install deps for Pylint Install dependencies for Pylint to run properly --- action.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/action.yml b/action.yml index 7a8b7d7..da35cb8 100644 --- a/action.yml +++ b/action.yml @@ -144,6 +144,18 @@ runs: github_token: ${{ inputs.github_token }} workdir: ${{ inputs.root }}/${{ inputs.workdir }} + - if: ${{ inputs.pylint == 'true' }} + uses: actions/setup-python@v4 + with: + python-version: ${{ inputs.python_version }} + cache: 'pip' # caching pip dependencies + - if: ${{ inputs.pytest == 'true' }} + run: | + python -m pip install --upgrade pip + python -m pip install pytest pylint + cd "${{ inputs.root }}/${{ inputs.workdir }}" + python -m flit install || python -m pip install . + - if: ${{ inputs.pylint == 'true' }} uses: dciborow/action-pylint@0.1.0 with: