mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-04 07:38:14 +02:00
Update integration workflow to include yt-dlp installation and simplify test execution
This commit is contained in:
1 parent
7b704a1e21
commit
07c4533cba
2 files changed
+4
-17
No files matched your search
@@ -20,24 +20,13 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: https://gitea.com/actions/checkout@v5
|
uses: https://gitea.com/actions/checkout@v5
|
||||||
|
|
||||||
- name: Install system packages (Python, ffmpeg, aria2)
|
- 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
|
sudo apt-get install -y python3 python3-pip ffmpeg aria2 yt-dlp
|
||||||
|
|
||||||
- name: Install yt-dlp
|
|
||||||
run: |
|
|
||||||
python3 -m pip install --upgrade pip
|
|
||||||
python3 -m pip install yt-dlp
|
|
||||||
|
|
||||||
- name: Install project
|
- name: Install project
|
||||||
run: python3 -m pip install -e .
|
run: python3 -m pip install -e .
|
||||||
|
|
||||||
- name: Run integration test (gated)
|
- name: Run integration test
|
||||||
# The integration test performs real downloads; gate it behind a repository secret.
|
run: python3 tests/integration_full_workflow_test.py
|
||||||
if: ${{ secrets.RUN_INTEGRATION_TESTS == 'true' }}
|
|
||||||
run: python3 tests/integration_full_workflow_test.py
|
|
||||||
|
|
||||||
- name: Skip integration test (not enabled)
|
|
||||||
if: ${{ secrets.RUN_INTEGRATION_TESTS != 'true' }}
|
|
||||||
run: echo "Integration tests are skipped. To enable set the repository secret RUN_INTEGRATION_TESTS = 'true'."
|
|
||||||
@@ -2,8 +2,6 @@ name: Build Release Packages
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
#branches:
|
|
||||||
#- test
|
|
||||||
tags:
|
tags:
|
||||||
- "v*.*.*"
|
- "v*.*.*"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user