Skip to content

Commit 01e81a9

Browse files
authored
fix: Install deps for Pylint (microsoft#25)
1 parent d03c93f commit 01e81a9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,18 @@ runs:
144144
github_token: ${{ inputs.github_token }}
145145
workdir: ${{ inputs.root }}/${{ inputs.workdir }}
146146

147+
- if: ${{ inputs.pylint == 'true' }}
148+
uses: actions/setup-python@v4
149+
with:
150+
python-version: ${{ inputs.python_version }}
151+
cache: 'pip' # caching pip dependencies
152+
- if: ${{ inputs.pytest == 'true' }}
153+
run: |
154+
python -m pip install --upgrade pip
155+
python -m pip install pytest pylint
156+
cd "${{ inputs.root }}/${{ inputs.workdir }}"
157+
python -m flit install || python -m pip install .
158+
147159
- if: ${{ inputs.pylint == 'true' }}
148160
uses: dciborow/[email protected]
149161
with:

0 commit comments

Comments
 (0)