add ytdl tests

they only run when youtube-dl or yt-dlp are installed,
i.e. if __import__("<ytdl-package>") succeeds
This commit is contained in:
Mike Fährmann
2022-05-23 16:07:01 +02:00
parent 9df4e0f65b
commit 6ad39f2b68
3 changed files with 279 additions and 5 deletions

View File

@@ -26,12 +26,16 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
env:
PYV: ${{ matrix.python-version }}
run: |
pip install -r requirements.txt
pip install flake8
pip install youtube-dl
if [[ "$PYV" != "3.4" && "$PYV" != "3.5" ]]; then pip install yt-dlp; fi
- name: Lint with flake8
run: |
pip install flake8
flake8 .
- name: Run tests