]> jfr.im git - yt-dlp.git/blame - .github/workflows/download.yml
Remove Python 3.7 support (#8361)
[yt-dlp.git] / .github / workflows / download.yml
CommitLineData
3bcaa37b 1name: Download Tests
298f597b 2on: [push, pull_request]
c789fb77
A
3permissions:
4 contents: read
5
c76eb41b 6jobs:
258d88f3 7 quick:
8 name: Quick Download Tests
36382262 9 if: "contains(github.event.head_commit.message, 'ci run dl')"
258d88f3 10 runs-on: ubuntu-latest
11 steps:
5438593a 12 - uses: actions/checkout@v4
258d88f3 13 - name: Set up Python
c4b6c5c7 14 uses: actions/setup-python@v4
258d88f3 15 with:
16 python-version: 3.9
17 - name: Install test requirements
f4b95aca 18 run: pip install pytest -r requirements.txt
258d88f3 19 - name: Run tests
20 continue-on-error: true
21 run: ./devscripts/run_tests.sh download
22
23 full:
24 name: Full Download Tests
25 if: "contains(github.event.head_commit.message, 'ci run dl all')"
c76eb41b 26 runs-on: ${{ matrix.os }}
27 strategy:
28 fail-fast: true
29 matrix:
7a96d0b3 30 os: [ubuntu-latest]
f4b95aca 31 python-version: ['3.10', '3.11', '3.12', pypy-3.8, pypy-3.10]
c76eb41b 32 run-tests-ext: [sh]
33 include:
2cb19820 34 # atleast one of each CPython/PyPy tests must be in windows
c76eb41b 35 - os: windows-latest
2cb19820 36 python-version: '3.8'
37 run-tests-ext: bat
38 - os: windows-latest
39 python-version: pypy-3.9
c76eb41b 40 run-tests-ext: bat
c76eb41b 41 steps:
5438593a 42 - uses: actions/checkout@v4
c76eb41b 43 - name: Set up Python ${{ matrix.python-version }}
c4b6c5c7 44 uses: actions/setup-python@v4
c76eb41b 45 with:
46 python-version: ${{ matrix.python-version }}
f4b95aca 47 - name: Install test requirements
48 run: pip install pytest -r requirements.txt
c76eb41b 49 - name: Run tests
14b17a55 50 continue-on-error: true
060ac762 51 run: ./devscripts/run_tests.${{ matrix.run-tests-ext }} download