Skip to content

Commit 2504e2b

Browse files
authored
Merge pull request #14 from HENNGE/venv
Create a venv for python deps
2 parents d2cb281 + d3eac9c commit 2504e2b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ runs:
4242
sudo ln -sf ~/.tfenv/bin/* /usr/local/bin
4343
shell: bash
4444

45-
- run: pip install jinja2
45+
- run: |
46+
python -m venv venv
47+
venv/bin/pip install jinja2
4648
shell: bash
4749
4850
- id: check
@@ -68,7 +70,7 @@ runs:
6870
tfenv install "${versions[$i]}"
6971
tfenv use "${versions[$i]}"
7072
71-
python3 ${{ github.action_path }}/tfcheck.py "${directories[$i]}" -report report.md $hide | tee >(tail -1 >> result.txt)
73+
venv/bin/python ${{ github.action_path }}/tfcheck.py "${directories[$i]}" -report report.md $hide | tee >(tail -1 >> result.txt)
7274
ret=${PIPESTATUS[0]}
7375
7476
if [ "$ret" -eq 1 ]; then

0 commit comments

Comments
 (0)