]>
Commit | Line | Data |
---|---|---|
3bcaa37b | 1 | name: Core Tests |
298f597b | 2 | on: [push, pull_request] |
c789fb77 A |
3 | permissions: |
4 | contents: read | |
5 | ||
c76eb41b | 6 | jobs: |
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 |
16 | python-version: ['3.8', '3.9', '3.10', pypy-3.7, pypy-3.8] | |
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 |
71df9b7f | 21 | python-version: '3.7' |
2cb19820 | 22 | run-tests-ext: bat |
23 | - os: windows-latest | |
24 | python-version: pypy-3.9 | |
c76eb41b | 25 | run-tests-ext: bat |
c76eb41b | 26 | steps: |
c4b6c5c7 | 27 | - uses: actions/checkout@v3 |
c76eb41b | 28 | - name: Set up Python ${{ matrix.python-version }} |
c4b6c5c7 | 29 | uses: actions/setup-python@v4 |
c76eb41b | 30 | with: |
31 | python-version: ${{ matrix.python-version }} | |
060ac762 | 32 | - name: Install pytest |
33 | run: pip install pytest | |
c76eb41b | 34 | - name: Run tests |
14b17a55 | 35 | continue-on-error: False |
71df9b7f | 36 | run: | |
37 | python3 -m yt_dlp -v || true # Print debug head | |
38 | ./devscripts/run_tests.${{ matrix.run-tests-ext }} core |