venv execution.

This commit is contained in:
2025-10-22 17:23:10 -04:00
parent e6bc2e6eab
commit f5866dedfd
+8 -4
View File
@@ -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 }}