]> jfr.im git - yt-dlp.git/blob - .github/workflows/ci.yml
b8baf1fadcb911b3a7d192c9923283c14c27f5a9
[yt-dlp.git] / .github / workflows / ci.yml
1 name: Full Test
2 on: [push]
3 jobs:
4 tests:
5 name: Tests
6 runs-on: ${{ matrix.os }}
7 strategy:
8 fail-fast: true
9 matrix:
10 os: [ubuntu-latest]
11 # TODO: python 2.6
12 # 3.3, 3.4 are not running
13 python-version: [2.7, 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: [core, download]
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
24 - os: windows-latest
25 python-version: 3.2
26 python-impl: cpython
27 ytdl-test-set: download
28 run-tests-ext: bat
29 # jython
30 - os: ubuntu-latest
31 python-impl: jython
32 ytdl-test-set: core
33 run-tests-ext: sh
34 - os: ubuntu-latest
35 python-impl: jython
36 ytdl-test-set: download
37 run-tests-ext: sh
38 steps:
39 - uses: actions/checkout@v2
40 - name: Set up Python ${{ matrix.python-version }}
41 uses: actions/setup-python@v2
42 if: ${{ matrix.python-impl == 'cpython' }}
43 with:
44 python-version: ${{ matrix.python-version }}
45 - name: Set up Java 8
46 if: ${{ matrix.python-impl == 'jython' }}
47 uses: actions/setup-java@v1
48 with:
49 java-version: 8
50 - name: Install Jython
51 if: ${{ matrix.python-impl == 'jython' }}
52 run: |
53 wget http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.7.1/jython-installer-2.7.1.jar -O jython-installer.jar
54 java -jar jython-installer.jar -s -d "$HOME/jython"
55 echo "$HOME/jython/bin" >> $GITHUB_PATH
56 - name: Install nose
57 run: pip install nose
58 - name: Run tests
59 continue-on-error: ${{ matrix.ytdl-test-set == 'download' || matrix.python-impl == 'jython' }}
60 env:
61 YTDL_TEST_SET: ${{ matrix.ytdl-test-set }}
62 run: ./devscripts/run_tests.${{ matrix.run-tests-ext }}
63 # flake8 has been moved to quick-test