]> jfr.im git - yt-dlp.git/blob - .github/workflows/core.yml
049faf3738d4c4d1566631b4fe97fa9d6d6d3a33
[yt-dlp.git] / .github / workflows / core.yml
1 name: Core Tests
2 on: [push, pull_request]
3 permissions:
4 contents: read
5
6 jobs:
7 tests:
8 name: Core Tests
9 if: "!contains(github.event.head_commit.message, 'ci skip')"
10 runs-on: ${{ matrix.os }}
11 strategy:
12 fail-fast: false
13 matrix:
14 os: [ubuntu-latest]
15 # CPython 3.11 is in quick-test
16 python-version: ['3.8', '3.9', '3.10', '3.12', pypy-3.7, pypy-3.8, pypy-3.10]
17 run-tests-ext: [sh]
18 include:
19 # atleast one of each CPython/PyPy tests must be in windows
20 - os: windows-latest
21 python-version: '3.7'
22 run-tests-ext: bat
23 - os: windows-latest
24 python-version: '3.12'
25 run-tests-ext: bat
26 - os: windows-latest
27 python-version: pypy-3.9
28 run-tests-ext: bat
29 steps:
30 - uses: actions/checkout@v3
31 - name: Set up Python ${{ matrix.python-version }}
32 uses: actions/setup-python@v4
33 with:
34 python-version: ${{ matrix.python-version }}
35 - name: Install dependencies
36 run: pip install pytest -r requirements.txt
37 - name: Run tests
38 continue-on-error: False
39 run: |
40 python3 -m yt_dlp -v || true # Print debug head
41 ./devscripts/run_tests.${{ matrix.run-tests-ext }} core