venv execution.
This commit is contained in:
+8
-4
@@ -36,16 +36,20 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Install Python dependencies
|
||||
- name: Set up Python virtual environment
|
||||
shell: bash
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install -r ${GITHUB_WORKSPACE}/requirements.txt
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install -r $GITHUB_ACTION_PATH/requirements.txt
|
||||
echo "VENV_PATH=$PWD/venv" >> $GITHUB_ENV
|
||||
|
||||
- name: Run git-auto-comment
|
||||
shell: bash
|
||||
run: |
|
||||
python3 ${GITHUB_WORKSPACE}/git-auto-comment.py
|
||||
source $VENV_PATH/bin/activate
|
||||
python3 $GITHUB_ACTION_PATH/git-auto-comment.py
|
||||
env:
|
||||
PLATFORM: ${{ inputs.platform }}
|
||||
TOKEN: ${{ inputs.token }}
|
||||
|
||||
Reference in New Issue
Block a user