From f5866dedfd9a86ac661e4d4a7a59f04f40b476af Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Wed, 22 Oct 2025 17:23:10 -0400 Subject: [PATCH] venv execution. --- action.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 }}