From 058c1b9fd09c5367e41d39858a5c93de741dacb4 Mon Sep 17 00:00:00 2001 From: DARKZOUL5 Date: Sat, 25 Oct 2025 20:35:00 +0300 Subject: [PATCH] Refactor integration workflow to ensure virtual environment support during package installation --- .gitea/workflows/integration.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/integration.yml b/.gitea/workflows/integration.yml index 34c788c..daa464b 100644 --- a/.gitea/workflows/integration.yml +++ b/.gitea/workflows/integration.yml @@ -23,10 +23,17 @@ jobs: - name: Install system packages (Python, ffmpeg, aria2, yt-dlp) run: | sudo apt-get update -y - sudo apt-get install -y python3 python3-pip ffmpeg aria2 yt-dlp + # ensure venv support is available so we can create an isolated environment + sudo apt-get install -y python3 python3-pip python3-venv ffmpeg aria2 yt-dlp - - name: Install project - run: python3 -m pip install -e . + - name: Install project into virtual environment + run: | + # create a venv and use it for installs to avoid modifying the system Python + python3 -m venv .venv + # activate the venv for this step + . .venv/bin/activate + python -m pip install --upgrade pip + python -m pip install -e . - name: Run integration test run: python3 tests/integration_full_workflow_test.py \ No newline at end of file