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: runs:
using: "composite" using: "composite"
steps: steps:
- name: Install Python dependencies - name: Set up Python virtual environment
shell: bash shell: bash
run: | run: |
python3 -m pip install --upgrade pip python3 -m venv venv
python3 -m pip install -r ${GITHUB_WORKSPACE}/requirements.txt 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 - name: Run git-auto-comment
shell: bash shell: bash
run: | run: |
python3 ${GITHUB_WORKSPACE}/git-auto-comment.py source $VENV_PATH/bin/activate
python3 $GITHUB_ACTION_PATH/git-auto-comment.py
env: env:
PLATFORM: ${{ inputs.platform }} PLATFORM: ${{ inputs.platform }}
TOKEN: ${{ inputs.token }} TOKEN: ${{ inputs.token }}