ci/tests: fix integration workflow

This commit is contained in:
dark_zoul committed 2026-05-16 17:07:30 +03:00
1 parent 8cd0c91f29
commit 7a5db21f47
1 file changed
+18 -9
+18 -9
View File
@@ -15,11 +15,24 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
INTEGRATION_TEST: '1' INTEGRATION_TEST: '1'
TEST_PLAYLIST_URL: 'https://www.youtube.com/playlist?list=PLUmRr21IDW9WCW87FnbWAbIwwZHbf-lAz' # Used by the integration tests to locate ffmpeg reliably.
FFMPEG_PATH: '/usr/bin/ffmpeg'
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v6 uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install system deps
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Make bundled linux binaries executable (if present) - name: Make bundled linux binaries executable (if present)
run: | run: |
@@ -35,14 +48,10 @@ jobs:
python3 -m venv .venv python3 -m venv .venv
. .venv/bin/activate . .venv/bin/activate
python -m pip install --upgrade pip python -m pip install --upgrade pip
# Install project in editable mode. If the 'test' extra exists, prefer it. python -m pip install -e .[dev] || python -m pip install -e .
python -m pip install -e .[test] || python -m pip install -e .
python -m pip install pytest
- name: Run integration script directly - name: Run integration tests
env:
YTPL_DEBUG: '1'
run: | run: |
set -euo pipefail set -euo pipefail
. .venv/bin/activate . .venv/bin/activate
python tests/integration_full_workflow_test.py pytest -m integration