|
| 1 | +name: Test |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + types: [opened, synchronize] |
| 7 | + |
| 8 | +jobs: |
| 9 | + test-py27: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + env: |
| 12 | + PYTHON_VER: 2.7 |
| 13 | + NODE_VER: 14 |
| 14 | + strategy: |
| 15 | + matrix: |
| 16 | + django-ltver: [1.9, '1.10', 1.11, 1.12] |
| 17 | + mjml-ver: [4.4.0, 4.5.1, 4.6.3, 4.7.1, 4.8.2, 4.9.3, 4.10.1] |
| 18 | + fail-fast: false |
| 19 | + steps: |
| 20 | + - name: Checkout |
| 21 | + uses: actions/checkout@v2 |
| 22 | + - name: Set up Python ${{ env.PYTHON_VER }} |
| 23 | + uses: actions/setup-python@v2 |
| 24 | + with: |
| 25 | + python-version: ${{ env.PYTHON_VER }} |
| 26 | + - name: Install Python dependencies |
| 27 | + run: | |
| 28 | + pip install "Django<${{ matrix.django-ltver }}" |
| 29 | + pip install "requests>=2.20.0,<=2.24.0" |
| 30 | + pip install mock |
| 31 | + - name: Set up Node.js ${{ env.NODE_VER }} |
| 32 | + uses: actions/setup-node@v2 |
| 33 | + with: |
| 34 | + node-version: ${{ env.NODE_VER }} |
| 35 | + - name: Install Node dependencies |
| 36 | + run: | |
| 37 | + npm cache verify |
| 38 | + npm install -g mjml-http-server@0.0.3 |
| 39 | + npm install mjml@${{ matrix.mjml-ver }} |
| 40 | + - name: Show info |
| 41 | + run: | |
| 42 | + node_modules/.bin/mjml --version |
| 43 | + - name: Test |
| 44 | + run: | |
| 45 | + python tools.py test |
| 46 | + test-py36: |
| 47 | + runs-on: ubuntu-latest |
| 48 | + env: |
| 49 | + PYTHON_VER: 3.6 |
| 50 | + NODE_VER: 14 |
| 51 | + strategy: |
| 52 | + matrix: |
| 53 | + django-ltver: [1.12, 2.1, 2.2, 2.3, 3.1, 3.2, 3.3] |
| 54 | + mjml-ver: [4.4.0, 4.5.1, 4.6.3, 4.7.1, 4.8.2, 4.9.3, 4.10.1] |
| 55 | + fail-fast: false |
| 56 | + steps: |
| 57 | + - name: Checkout |
| 58 | + uses: actions/checkout@v2 |
| 59 | + - name: Set up Python ${{ env.PYTHON_VER }} |
| 60 | + uses: actions/setup-python@v2 |
| 61 | + with: |
| 62 | + python-version: ${{ env.PYTHON_VER }} |
| 63 | + - name: Install Python dependencies |
| 64 | + run: | |
| 65 | + pip install "Django<${{ matrix.django-ltver }}" |
| 66 | + pip install "requests>=2.20.0,<=2.24.0" |
| 67 | + - name: Set up Node.js ${{ env.NODE_VER }} |
| 68 | + uses: actions/setup-node@v2 |
| 69 | + with: |
| 70 | + node-version: ${{ env.NODE_VER }} |
| 71 | + - name: Install Node dependencies |
| 72 | + run: | |
| 73 | + npm cache verify |
| 74 | + npm install -g mjml-http-server@0.0.3 |
| 75 | + npm install mjml@${{ matrix.mjml-ver }} |
| 76 | + - name: Show info |
| 77 | + run: | |
| 78 | + node_modules/.bin/mjml --version |
| 79 | + - name: Test |
| 80 | + run: | |
| 81 | + python tools.py test |
| 82 | + test-py37: |
| 83 | + runs-on: ubuntu-latest |
| 84 | + env: |
| 85 | + PYTHON_VER: 3.7 |
| 86 | + NODE_VER: 14 |
| 87 | + strategy: |
| 88 | + matrix: |
| 89 | + django-ltver: [1.12, 2.1, 2.2, 2.3, 3.1, 3.2, 3.3] |
| 90 | + mjml-ver: [4.4.0, 4.5.1, 4.6.3, 4.7.1, 4.8.2, 4.9.3, 4.10.1] |
| 91 | + fail-fast: false |
| 92 | + steps: |
| 93 | + - name: Checkout |
| 94 | + uses: actions/checkout@v2 |
| 95 | + - name: Set up Python ${{ env.PYTHON_VER }} |
| 96 | + uses: actions/setup-python@v2 |
| 97 | + with: |
| 98 | + python-version: ${{ env.PYTHON_VER }} |
| 99 | + - name: Install Python dependencies |
| 100 | + run: | |
| 101 | + pip install "Django<${{ matrix.django-ltver }}" |
| 102 | + pip install "requests>=2.20.0,<=2.24.0" |
| 103 | + - name: Set up Node.js ${{ env.NODE_VER }} |
| 104 | + uses: actions/setup-node@v2 |
| 105 | + with: |
| 106 | + node-version: ${{ env.NODE_VER }} |
| 107 | + - name: Install Node dependencies |
| 108 | + run: | |
| 109 | + npm cache verify |
| 110 | + npm install -g mjml-http-server@0.0.3 |
| 111 | + npm install mjml@${{ matrix.mjml-ver }} |
| 112 | + - name: Show info |
| 113 | + run: | |
| 114 | + node_modules/.bin/mjml --version |
| 115 | + - name: Test |
| 116 | + run: | |
| 117 | + python tools.py test |
| 118 | + test-py38: |
| 119 | + runs-on: ubuntu-latest |
| 120 | + env: |
| 121 | + PYTHON_VER: 3.8 |
| 122 | + NODE_VER: 14 |
| 123 | + strategy: |
| 124 | + matrix: |
| 125 | + django-ltver: [2.3, 3.1, 3.2, 3.3] |
| 126 | + mjml-ver: [4.4.0, 4.5.1, 4.6.3, 4.7.1, 4.8.2, 4.9.3, 4.10.1] |
| 127 | + fail-fast: false |
| 128 | + steps: |
| 129 | + - name: Checkout |
| 130 | + uses: actions/checkout@v2 |
| 131 | + - name: Set up Python ${{ env.PYTHON_VER }} |
| 132 | + uses: actions/setup-python@v2 |
| 133 | + with: |
| 134 | + python-version: ${{ env.PYTHON_VER }} |
| 135 | + - name: Install Python dependencies |
| 136 | + run: | |
| 137 | + pip install "Django<${{ matrix.django-ltver }}" |
| 138 | + pip install "requests>=2.20.0,<=2.24.0" |
| 139 | + - name: Set up Node.js ${{ env.NODE_VER }} |
| 140 | + uses: actions/setup-node@v2 |
| 141 | + with: |
| 142 | + node-version: ${{ env.NODE_VER }} |
| 143 | + - name: Install Node dependencies |
| 144 | + run: | |
| 145 | + npm cache verify |
| 146 | + npm install -g mjml-http-server@0.0.3 |
| 147 | + npm install mjml@${{ matrix.mjml-ver }} |
| 148 | + - name: Show info |
| 149 | + run: | |
| 150 | + node_modules/.bin/mjml --version |
| 151 | + - name: Test |
| 152 | + run: | |
| 153 | + python tools.py test |
| 154 | + test-py39: |
| 155 | + runs-on: ubuntu-latest |
| 156 | + env: |
| 157 | + PYTHON_VER: 3.9 |
| 158 | + NODE_VER: 14 |
| 159 | + strategy: |
| 160 | + matrix: |
| 161 | + django-ltver: [2.3, 3.1, 3.2, 3.3] |
| 162 | + mjml-ver: [4.4.0, 4.5.1, 4.6.3, 4.7.1, 4.8.2, 4.9.3, 4.10.1] |
| 163 | + fail-fast: false |
| 164 | + steps: |
| 165 | + - name: Checkout |
| 166 | + uses: actions/checkout@v2 |
| 167 | + - name: Set up Python ${{ env.PYTHON_VER }} |
| 168 | + uses: actions/setup-python@v2 |
| 169 | + with: |
| 170 | + python-version: ${{ env.PYTHON_VER }} |
| 171 | + - name: Install Python dependencies |
| 172 | + run: | |
| 173 | + pip install "Django<${{ matrix.django-ltver }}" |
| 174 | + pip install "requests>=2.20.0,<=2.24.0" |
| 175 | + - name: Set up Node.js ${{ env.NODE_VER }} |
| 176 | + uses: actions/setup-node@v2 |
| 177 | + with: |
| 178 | + node-version: ${{ env.NODE_VER }} |
| 179 | + - name: Install Node dependencies |
| 180 | + run: | |
| 181 | + npm cache verify |
| 182 | + npm install -g mjml-http-server@0.0.3 |
| 183 | + npm install mjml@${{ matrix.mjml-ver }} |
| 184 | + - name: Show info |
| 185 | + run: | |
| 186 | + node_modules/.bin/mjml --version |
| 187 | + - name: Test |
| 188 | + run: | |
| 189 | + python tools.py test |
0 commit comments