|
25 | 25 | ubuntu-latest, |
26 | 26 | macos-12, |
27 | 27 | ] |
28 | | - language: [java, net] |
| 28 | + language: [java, net, python] |
29 | 29 | # https://taskei.amazon.dev/tasks/CrypTool-5284 |
30 | 30 | dotnet-version: ["6.0.x"] |
31 | 31 | runs-on: ${{ matrix.os }} |
|
57 | 57 | distribution: "corretto" |
58 | 58 | java-version: 17 |
59 | 59 |
|
| 60 | + - name: Setup Python for running tests |
| 61 | + uses: actions/setup-python@v4 |
| 62 | + with: |
| 63 | + python-version: 3.11 |
| 64 | + architecture: x64 |
| 65 | + - run: | |
| 66 | + python -m pip install --upgrade pip |
| 67 | + pip install --upgrade tox |
| 68 | + pip install poetry |
| 69 | +
|
60 | 70 | - name: Setup Dafny |
61 | 71 | uses: dafny-lang/[email protected] |
62 | 72 | with: |
|
89 | 99 | CORES=$(node -e 'console.log(os.cpus().length)') |
90 | 100 | make transpile_net |
91 | 101 |
|
| 102 | + - name: Build ${{ matrix.library }} implementation in Python |
| 103 | + if: matrix.language == 'python' |
| 104 | + shell: bash |
| 105 | + working-directory: ./${{ matrix.library }} |
| 106 | + run: | |
| 107 | + # This works because `node` is installed by default on GHA runners |
| 108 | + CORES=$(node -e 'console.log(os.cpus().length)') |
| 109 | + make transpile_python |
| 110 | +
|
92 | 111 | - name: Setup gradle |
93 | 112 | if: matrix.language == 'java' |
94 | 113 | uses: gradle/gradle-build-action@v2 |
@@ -128,8 +147,8 @@ jobs: |
128 | 147 | ubuntu-latest, |
129 | 148 | macos-12, |
130 | 149 | ] |
131 | | - encrypting_language: [java, net] |
132 | | - decrypting_language: [java, net] |
| 150 | + encrypting_language: [java, net, python] |
| 151 | + decrypting_language: [java, net, python] |
133 | 152 | dotnet-version: ["6.0.x"] |
134 | 153 | runs-on: ${{ matrix.os }} |
135 | 154 | permissions: |
@@ -167,6 +186,16 @@ jobs: |
167 | 186 | distribution: "corretto" |
168 | 187 | java-version: 17 |
169 | 188 |
|
| 189 | + - name: Setup Python for running tests |
| 190 | + uses: actions/setup-python@v4 |
| 191 | + with: |
| 192 | + python-version: 3.11 |
| 193 | + architecture: x64 |
| 194 | + - run: | |
| 195 | + python -m pip install --upgrade pip |
| 196 | + pip install --upgrade tox |
| 197 | + pip install poetry |
| 198 | +
|
170 | 199 | - name: Setup Dafny |
171 | 200 | uses: dafny-lang/[email protected] |
172 | 201 | with: |
@@ -199,6 +228,15 @@ jobs: |
199 | 228 | CORES=$(node -e 'console.log(os.cpus().length)') |
200 | 229 | make transpile_net |
201 | 230 |
|
| 231 | + - name: Build ${{ matrix.library }} implementation in Python |
| 232 | + if: matrix.decrypting_language == 'python' |
| 233 | + shell: bash |
| 234 | + working-directory: ./${{ matrix.library }} |
| 235 | + run: | |
| 236 | + # This works because `node` is installed by default on GHA runners |
| 237 | + CORES=$(node -e 'console.log(os.cpus().length)') |
| 238 | + make transpile_python |
| 239 | +
|
202 | 240 | - name: Download Encrypt Manifest Artifact |
203 | 241 | uses: actions/download-artifact@v4 |
204 | 242 | with: |
|
0 commit comments