]> jfr.im git - yt-dlp.git/blame - .github/workflows/core.yml
Update to ytdl-commit-a726009
[yt-dlp.git] / .github / workflows / core.yml
CommitLineData
3bcaa37b 1name: Core Tests
298f597b 2on: [push, pull_request]
c76eb41b 3jobs:
4 tests:
3bcaa37b 5 name: Core Tests
36382262 6 if: "!contains(github.event.head_commit.message, 'ci skip')"
c76eb41b 7 runs-on: ${{ matrix.os }}
8 strategy:
e4bdd337 9 fail-fast: false
c76eb41b 10 matrix:
65156eba 11 os: [ubuntu-18.04]
c76eb41b 12 # TODO: python 2.6
65156eba 13 python-version: [2.7, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, pypy-2.7, pypy-3.6, pypy-3.7]
c76eb41b 14 python-impl: [cpython]
3bcaa37b 15 ytdl-test-set: [core]
c76eb41b 16 run-tests-ext: [sh]
17 include:
18 # python 3.2 is only available on windows via setup-python
19 - os: windows-latest
20 python-version: 3.2
21 python-impl: cpython
22 ytdl-test-set: core
23 run-tests-ext: bat
c76eb41b 24 # jython
25 - os: ubuntu-latest
26 python-impl: jython
27 ytdl-test-set: core
28 run-tests-ext: sh
c76eb41b 29 steps:
30 - uses: actions/checkout@v2
31 - name: Set up Python ${{ matrix.python-version }}
32 uses: actions/setup-python@v2
33 if: ${{ matrix.python-impl == 'cpython' }}
34 with:
35 python-version: ${{ matrix.python-version }}
36 - name: Set up Java 8
37 if: ${{ matrix.python-impl == 'jython' }}
38 uses: actions/setup-java@v1
39 with:
40 java-version: 8
41 - name: Install Jython
42 if: ${{ matrix.python-impl == 'jython' }}
43 run: |
41d1cca3 44 wget https://repo1.maven.org/maven2/org/python/jython-installer/2.7.1/jython-installer-2.7.1.jar -O jython-installer.jar
c76eb41b 45 java -jar jython-installer.jar -s -d "$HOME/jython"
46 echo "$HOME/jython/bin" >> $GITHUB_PATH
47 - name: Install nose
41d1cca3 48 if: ${{ matrix.python-impl != 'jython' }}
c76eb41b 49 run: pip install nose
41d1cca3 50 - name: Install nose (Jython)
51 if: ${{ matrix.python-impl == 'jython' }}
52 # Working around deprecation of support for non-SNI clients at PyPI CDN (see https://status.python.org/incidents/hzmjhqsdjqgb)
53 run: |
54 wget https://files.pythonhosted.org/packages/99/4f/13fb671119e65c4dce97c60e67d3fd9e6f7f809f2b307e2611f4701205cb/nose-1.3.7-py2-none-any.whl
55 pip install nose-1.3.7-py2-none-any.whl
c76eb41b 56 - name: Run tests
57 continue-on-error: ${{ matrix.ytdl-test-set == 'download' || matrix.python-impl == 'jython' }}
58 env:
59 YTDL_TEST_SET: ${{ matrix.ytdl-test-set }}
60 run: ./devscripts/run_tests.${{ matrix.run-tests-ext }}
3bcaa37b 61 # Linter is in quick-test