]>
Commit | Line | Data |
---|---|---|
1 | name: Download Tests | |
2 | on: [push, pull_request] | |
3 | jobs: | |
4 | tests: | |
5 | name: Download Tests | |
6 | if: "!contains(github.event.head_commit.message, 'ci skip dl') && !contains(github.event.head_commit.message, 'ci skip all')" | |
7 | runs-on: ${{ matrix.os }} | |
8 | strategy: | |
9 | fail-fast: true | |
10 | matrix: | |
11 | os: [ubuntu-18.04] | |
12 | # TODO: python 2.6 | |
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] | |
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: download | |
23 | run-tests-ext: bat | |
24 | # jython - disable for now since it takes too long to complete | |
25 | # - os: ubuntu-latest | |
26 | # python-impl: jython | |
27 | # ytdl-test-set: download | |
28 | # run-tests-ext: sh | |
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: | | |
44 | wget http://search.maven.org/remotecontent?filepath=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 | |
47 | - name: Install nose | |
48 | run: pip install nose | |
49 | - name: Run tests | |
50 | continue-on-error: ${{ matrix.ytdl-test-set == 'download' || matrix.python-impl == 'jython' }} | |
51 | env: | |
52 | YTDL_TEST_SET: ${{ matrix.ytdl-test-set }} | |
53 | run: ./devscripts/run_tests.${{ matrix.run-tests-ext }} |