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