mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-04 07:38:14 +02:00
Refactor integration workflow to ensure virtual environment support during package installation
This commit is contained in:
1 parent
75c8993bb4
commit
058c1b9fd0
1 file changed
+10
-3
@@ -23,10 +23,17 @@ jobs:
|
|||||||
- name: Install system packages (Python, ffmpeg, aria2, yt-dlp)
|
- name: Install system packages (Python, ffmpeg, aria2, yt-dlp)
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y
|
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
|
- name: Install project into virtual environment
|
||||||
run: python3 -m pip install -e .
|
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
|
- name: Run integration test
|
||||||
run: python3 tests/integration_full_workflow_test.py
|
run: python3 tests/integration_full_workflow_test.py
|
||||||
Reference in new issue
Block a user