diff --git a/action.yml b/action.yml index 8075e42..882253f 100644 --- a/action.yml +++ b/action.yml @@ -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 }}