[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:
19
.github/workflows/tests.yml
vendored
19
.github/workflows/tests.yml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user