[ytdl] run yt-dlp tests with latest code from master (#3989)

Only use PyPI version for Python 3.6, since that's no longer supported
by the current codebase.
This commit is contained in:
Mike Fährmann
2023-05-01 16:31:26 +02:00
parent 6a860876bc
commit aa731c4298
3 changed files with 27 additions and 5 deletions

View File

@@ -26,13 +26,26 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
env:
PYV: ${{ matrix.python-version }}
run: |
pip install -r requirements.txt
pip install "flake8<4" "importlib-metadata<5"
pip install youtube-dl
if [[ "$PYV" != "3.4" && "$PYV" != "3.5" ]]; then pip install yt-dlp; fi
- name: Install yt-dlp
run: |
case "${{ matrix.python-version }}" in
3.4|3.5)
# don't install yt-dlp
;;
3.6)
# install from PyPI
pip install yt-dlp
;;
*)
# install from master
pip install https://github.com/yt-dlp/yt-dlp/archive/refs/heads/master.tar.gz
;;
esac
- name: Lint with flake8
run: |