]> jfr.im git - yt-dlp.git/blob - .github/workflows/core.yml
Release 2023.06.21
[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', pypy-3.7, pypy-3.8]
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: pypy-3.9
25 run-tests-ext: bat
26 steps:
27 - uses: actions/checkout@v3
28 - name: Set up Python ${{ matrix.python-version }}
29 uses: actions/setup-python@v4
30 with:
31 python-version: ${{ matrix.python-version }}
32 - name: Install pytest
33 run: pip install pytest
34 - name: Run tests
35 continue-on-error: False
36 run: |
37 python3 -m yt_dlp -v || true # Print debug head
38 ./devscripts/run_tests.${{ matrix.run-tests-ext }} core