2 on: [push, pull_request]
6 if: "contains(github.event.head_commit.message, 'ci run dl')"
7 runs-on: ${{ matrix.os }}
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]
14 python-impl: [cpython]
15 ytdl-test-set: [download]
18 # python 3.2 is only available on windows via setup-python
22 ytdl-test-set: download
24 # jython - disable for now since it takes too long to complete
27 # ytdl-test-set: download
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' }}
35 python-version: ${{ matrix.python-version }}
37 if: ${{ matrix.python-impl == 'jython' }}
38 uses: actions/setup-java@v1
41 - name: Install Jython
42 if: ${{ matrix.python-impl == 'jython' }}
44 wget https://repo1.maven.org/maven2/org/python/jython-installer/2.7.1/jython-installer-2.7.1.jar -O jython-installer.jar
45 java -jar jython-installer.jar -s -d "$HOME/jython"
46 echo "$HOME/jython/bin" >> $GITHUB_PATH
48 if: ${{ matrix.python-impl != 'jython' }}
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)
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
57 continue-on-error: ${{ matrix.ytdl-test-set == 'download' || matrix.python-impl == 'jython' }}
59 YTDL_TEST_SET: ${{ matrix.ytdl-test-set }}
60 run: ./devscripts/run_tests.${{ matrix.run-tests-ext }}