]>
Commit | Line | Data |
---|---|---|
3bcaa37b | 1 | name: Core Tests |
13b3cb3c SS |
2 | on: |
3 | push: | |
4 | paths: | |
5 | - .github/** | |
6 | - devscripts/** | |
7 | - test/** | |
8 | - yt_dlp/**.py | |
9 | - '!yt_dlp/extractor/*.py' | |
10 | - yt_dlp/extractor/__init__.py | |
11 | - yt_dlp/extractor/common.py | |
12 | - yt_dlp/extractor/extractors.py | |
13 | pull_request: | |
14 | paths: | |
15 | - .github/** | |
16 | - devscripts/** | |
17 | - test/** | |
18 | - yt_dlp/**.py | |
19 | - '!yt_dlp/extractor/*.py' | |
20 | - yt_dlp/extractor/__init__.py | |
21 | - yt_dlp/extractor/common.py | |
22 | - yt_dlp/extractor/extractors.py | |
c789fb77 A |
23 | permissions: |
24 | contents: read | |
25 | ||
f124fa45 SS |
26 | concurrency: |
27 | group: core-${{ github.event.pull_request.number || github.ref }} | |
28 | cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
29 | ||
c76eb41b | 30 | jobs: |
31 | tests: | |
3bcaa37b | 32 | name: Core Tests |
36382262 | 33 | if: "!contains(github.event.head_commit.message, 'ci skip')" |
c76eb41b | 34 | runs-on: ${{ matrix.os }} |
35 | strategy: | |
e4bdd337 | 36 | fail-fast: false |
c76eb41b | 37 | matrix: |
7a96d0b3 | 38 | os: [ubuntu-latest] |
f9fb3ce8 SS |
39 | # CPython 3.8 is in quick-test |
40 | python-version: ['3.9', '3.10', '3.11', '3.12', pypy-3.8, pypy-3.10] | |
c76eb41b | 41 | include: |
2cb19820 | 42 | # atleast one of each CPython/PyPy tests must be in windows |
c76eb41b | 43 | - os: windows-latest |
f4b95aca | 44 | python-version: '3.8' |
836e06d2 | 45 | - os: windows-latest |
377e85a1 | 46 | python-version: '3.12' |
2cb19820 | 47 | - os: windows-latest |
48 | python-version: pypy-3.9 | |
c76eb41b | 49 | steps: |
5438593a | 50 | - uses: actions/checkout@v4 |
c76eb41b | 51 | - name: Set up Python ${{ matrix.python-version }} |
b14e818b | 52 | uses: actions/setup-python@v5 |
c76eb41b | 53 | with: |
54 | python-version: ${{ matrix.python-version }} | |
f4b95aca | 55 | - name: Install test requirements |
e897bd82 | 56 | run: python3 ./devscripts/install_deps.py --include test --include curl-cffi |
c76eb41b | 57 | - name: Run tests |
14b17a55 | 58 | continue-on-error: False |
71df9b7f | 59 | run: | |
60 | python3 -m yt_dlp -v || true # Print debug head | |
2d1d683a | 61 | python3 ./devscripts/run_tests.py core |