|
59 | 59 | with: |
60 | 60 | name: ${{ matrix.python-version }}-${{ matrix.os }} |
61 | 61 | if: always() |
62 | | - |
63 | | - test_using_jython: |
64 | | - strategy: |
65 | | - fail-fast: false |
66 | | - matrix: |
67 | | - java: [ '8.0' ] |
68 | | - os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ] |
69 | | - jython-version: [ '2.7.2' ] |
70 | | - include: |
71 | | - - os: windows-latest |
72 | | - set_codepage: chcp 850 |
73 | | - |
74 | | - runs-on: ${{ matrix.os }} |
75 | | - |
76 | | - name: Jython (Java ${{ matrix.java }}) ${{ matrix.jython-version }} on ${{ matrix.os }} |
77 | | - steps: |
78 | | - - uses: actions/checkout@v2 |
79 | | - |
80 | | - - name: Setup Java ${{ matrix.java }} |
81 | | - uses: actions/setup-java@v2 |
82 | | - with: |
83 | | - java-version: ${{ matrix.java }} |
84 | | - architecture: 'x64' |
85 | | - distribution: 'zulu' |
86 | | - |
87 | | - - name: Install wget |
88 | | - run: | |
89 | | - choco install wget -y --no-progress |
90 | | - if: runner.os == 'Windows' |
91 | | - |
92 | | - - name: Setup Jython ${{ matrix.jython-version }} |
93 | | - run: | |
94 | | - wget -nv "http://search.maven.org/remotecontent?filepath=org/python/jython-installer/${{ matrix.jython-version }}/jython-installer-${{ matrix.jython-version }}.jar" -O jytinst.jar |
95 | | - java -jar jytinst.jar -s -d jython/ |
96 | | -
|
97 | | - - name: Disable NTP on macOS (https://github.com/actions/virtual-environments/issues/820) |
98 | | - run: | |
99 | | - sudo systemsetup -setusingnetworktime off |
100 | | - sudo rm -rf /etc/ntp.conf |
101 | | - if: runner.os == 'macOS' |
102 | | - |
103 | | - - name: Run unit tests |
104 | | - run: | |
105 | | - ${{ matrix.set_codepage }} |
106 | | - jython/bin/jython -m pip install -r utest/requirements.txt |
107 | | - jython/bin/jython utest/run.py -v |
108 | | -
|
109 | | - test_using_ironpython: |
110 | | - strategy: |
111 | | - fail-fast: false |
112 | | - matrix: |
113 | | - os: [ 'windows-latest' ] |
114 | | - ironpython-version: [ '2.7.9' ] |
115 | | - |
116 | | - runs-on: ${{ matrix.os }} |
117 | | - |
118 | | - name: IronPython ${{ matrix.ironpython-version }} on ${{ matrix.os }} |
119 | | - steps: |
120 | | - - uses: actions/checkout@v2 |
121 | | - |
122 | | - - name: Setup IronPython ${{ matrix.ironpython-version }} |
123 | | - run: | |
124 | | - choco install ironpython -y --no-progress --version ${{ matrix.ironpython-version }} |
125 | | - ipy -m ensurepip --user |
126 | | -
|
127 | | - - name: Run unit tests |
128 | | - run: | |
129 | | - chcp 850 |
130 | | - ipy -m pip install -r utest/requirements.txt |
131 | | - ipy utest/run.py -v |
0 commit comments