|
68 | 68 | run: | |
69 | 69 | python tools.py test |
70 | 70 | test-py-3-7: |
71 | | - runs-on: ubuntu-latest |
| 71 | + runs-on: ubuntu-22.04 # Python 3.7 is not available in newer releases |
72 | 72 | env: |
73 | 73 | PYTHON_VER: 3.7 |
74 | 74 | NODE_VER: 20.x |
@@ -257,7 +257,7 @@ jobs: |
257 | 257 | NODE_VER: 20.x |
258 | 258 | strategy: |
259 | 259 | matrix: |
260 | | - django-ver: [ '<3.3', '<4.1', '<4.2', '<4.3', '<5.2' ] |
| 260 | + django-ver: [ '<3.3', '<4.1', '<4.2', '<4.3', '<5.2', '<5.3' ] |
261 | 261 | mjml-ver: [ '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1', '4.15.2' ] |
262 | 262 | tcp-server-ver: [ 'v1.2' ] |
263 | 263 | fail-fast: false |
@@ -318,7 +318,7 @@ jobs: |
318 | 318 | NODE_VER: 20.x |
319 | 319 | strategy: |
320 | 320 | matrix: |
321 | | - django-ver: [ '<4.2', '<4.3', '<5.2' ] |
| 321 | + django-ver: [ '<4.2', '<4.3', '<5.2', '<5.3' ] |
322 | 322 | mjml-ver: [ '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1', '4.15.2' ] |
323 | 323 | tcp-server-ver: [ 'v1.2' ] |
324 | 324 | fail-fast: false |
@@ -379,7 +379,68 @@ jobs: |
379 | 379 | NODE_VER: 20.x |
380 | 380 | strategy: |
381 | 381 | matrix: |
382 | | - django-ver: [ '<4.3', '<5.2' ] |
| 382 | + django-ver: [ '<4.3', '<5.2', '<5.3' ] |
| 383 | + mjml-ver: [ '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1', '4.15.2' ] |
| 384 | + tcp-server-ver: [ 'v1.2' ] |
| 385 | + fail-fast: false |
| 386 | + steps: |
| 387 | + - name: Checkout |
| 388 | + uses: actions/checkout@v4 |
| 389 | + - name: Checkout tcp server |
| 390 | + uses: actions/checkout@v4 |
| 391 | + with: |
| 392 | + repository: 'liminspace/mjml-tcpserver' |
| 393 | + ref: ${{ matrix.tcp-server-ver }} |
| 394 | + path: './mjml-tcpserver' |
| 395 | + - name: Set up Python ${{ env.PYTHON_VER }} |
| 396 | + uses: actions/setup-python@v5 |
| 397 | + with: |
| 398 | + python-version: ${{ env.PYTHON_VER }} |
| 399 | + - name: Cache pip |
| 400 | + uses: actions/cache@v4 |
| 401 | + env: |
| 402 | + cache-name: cache-pip |
| 403 | + with: |
| 404 | + path: ~/.cache/pip |
| 405 | + key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.PYTHON_VER }}-${{ matrix.django-ver }} |
| 406 | + restore-keys: | |
| 407 | + ${{ runner.os }}-${{ env.cache-name }}-${{ env.PYTHON_VER }}- |
| 408 | + - name: Install Python dependencies |
| 409 | + run: | |
| 410 | + pip install "Django${{ matrix.django-ver }}" |
| 411 | + pip install "requests>=2.24.0,<=2.29.0" |
| 412 | + - name: Set up Node.js ${{ env.NODE_VER }} |
| 413 | + uses: actions/setup-node@v4 |
| 414 | + with: |
| 415 | + node-version: ${{ env.NODE_VER }} |
| 416 | + - name: Cache npm |
| 417 | + uses: actions/cache@v4 |
| 418 | + env: |
| 419 | + cache-name: cache-npm |
| 420 | + with: |
| 421 | + path: ~/.npm |
| 422 | + key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.NODE_VER }}-${{ matrix.mjml-ver }} |
| 423 | + restore-keys: | |
| 424 | + ${{ runner.os }}-${{ env.cache-name }}-${{ env.NODE_VER }}- |
| 425 | + - name: Install Node dependencies |
| 426 | + run: | |
| 427 | + npm cache verify |
| 428 | + npm install -g mjml-http-server@0.1.0 |
| 429 | + npm install mjml@${{ matrix.mjml-ver }} |
| 430 | + - name: Show info |
| 431 | + run: | |
| 432 | + node_modules/.bin/mjml --version |
| 433 | + - name: Test |
| 434 | + run: | |
| 435 | + python tools.py test |
| 436 | + test-py-3-13: |
| 437 | + runs-on: ubuntu-latest |
| 438 | + env: |
| 439 | + PYTHON_VER: '3.13' |
| 440 | + NODE_VER: 20.x |
| 441 | + strategy: |
| 442 | + matrix: |
| 443 | + django-ver: [ '<5.2', '<5.3' ] |
383 | 444 | mjml-ver: [ '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1', '4.15.2' ] |
384 | 445 | tcp-server-ver: [ 'v1.2' ] |
385 | 446 | fail-fast: false |
|
0 commit comments