Release 2024.11.18
[yt-dlp3.git] / .github / workflows / download.yml
blob6849fba9b6cad2a16a8e4a02b7e457143ca09fc7
1 name: Download Tests
2 on: [push, pull_request]
3 permissions:
4   contents: read
6 jobs:
7   quick:
8     name: Quick Download Tests
9     if: "contains(github.event.head_commit.message, 'ci run dl')"
10     runs-on: ubuntu-latest
11     steps:
12     - uses: actions/checkout@v4
13     - name: Set up Python
14       uses: actions/setup-python@v5
15       with:
16         python-version: 3.9
17     - name: Install test requirements
18       run: python3 ./devscripts/install_deps.py --include dev
19     - name: Run tests
20       continue-on-error: true
21       run: python3 ./devscripts/run_tests.py download
23   full:
24     name: Full Download Tests
25     if: "contains(github.event.head_commit.message, 'ci run dl all')"
26     runs-on: ${{ matrix.os }}
27     strategy:
28       fail-fast: true
29       matrix:
30         os: [ubuntu-latest]
31         python-version: ['3.10', '3.11', '3.12', '3.13', pypy-3.10]
32         include:
33         # atleast one of each CPython/PyPy tests must be in windows
34         - os: windows-latest
35           python-version: '3.9'
36         - os: windows-latest
37           python-version: pypy-3.10
38     steps:
39     - uses: actions/checkout@v4
40     - name: Set up Python ${{ matrix.python-version }}
41       uses: actions/setup-python@v5
42       with:
43         python-version: ${{ matrix.python-version }}
44     - name: Install test requirements
45       run: python3 ./devscripts/install_deps.py --include dev
46     - name: Run tests
47       continue-on-error: true
48       run: python3 ./devscripts/run_tests.py download