Files
YoutubePlaylistSync/.gitea/workflows/integration.yml
T

32 lines
945 B
YAML

name: Integration tests (full workflow)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
integration:
name: Run integration full-workflow tests
runs-on: ubuntu-latest
env:
# opt-in flag consumed by the integration script
INTEGRATION_TEST: '1'
# default playlist (override via repo secret or workflow dispatch if desired)
TEST_PLAYLIST_URL: 'https://www.youtube.com/playlist?list=PLUmRr21IDW9WCW87FnbWAbIwwZHbf-lAz'
steps:
- name: Checkout repository
uses: https://gitea.com/actions/checkout@v5
- 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
- name: Install project
run: python3 -m pip install -e .
- name: Run integration test
run: python3 tests/integration_full_workflow_test.py