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