|
66 | 66 | DB_HOST: 127.0.0.1
|
67 | 67 | DB_PORT: 3306
|
68 | 68 |
|
69 |
| - - name: Upload coverage data |
70 |
| - uses: actions/upload-artifact@v4 |
71 |
| - with: |
72 |
| - name: coverage-data-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.arch }}-mysql |
73 |
| - path: ".coverage.*" |
74 | 69 |
|
75 | 70 | postgres:
|
76 | 71 | runs-on: ubuntu-latest
|
@@ -144,12 +139,6 @@ jobs:
|
144 | 139 | DB_HOST: localhost
|
145 | 140 | DB_PORT: 5432
|
146 | 141 |
|
147 |
| - - name: Upload coverage data |
148 |
| - uses: actions/upload-artifact@v4 |
149 |
| - with: |
150 |
| - name: coverage-data-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.database }} |
151 |
| - path: ".coverage.*" |
152 |
| - |
153 | 142 | sqlite:
|
154 | 143 | runs-on: ubuntu-latest
|
155 | 144 | strategy:
|
@@ -192,44 +181,6 @@ jobs:
|
192 | 181 | DB_BACKEND: sqlite3
|
193 | 182 | DB_NAME: ":memory:"
|
194 | 183 |
|
195 |
| - - name: Upload coverage data |
196 |
| - uses: actions/upload-artifact@v4 |
197 |
| - with: |
198 |
| - name: coverage-data-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.arch }}-sqlite |
199 |
| - path: ".coverage.*" |
200 |
| - |
201 |
| - coverage: |
202 |
| - name: Check coverage. |
203 |
| - runs-on: "ubuntu-latest" |
204 |
| - needs: [sqlite, mysql, postgres] |
205 |
| - steps: |
206 |
| - - uses: actions/checkout@v4 |
207 |
| - - uses: actions/setup-python@v5 |
208 |
| - with: |
209 |
| - # Use latest, so it understands all syntax. |
210 |
| - python-version: "3.11" |
211 |
| - |
212 |
| - - run: python -m pip install --upgrade coverage[toml] |
213 |
| - |
214 |
| - - name: Download coverage data. |
215 |
| - uses: actions/download-artifact@v4 |
216 |
| - with: |
217 |
| - pattern: coverage-data-* |
218 |
| - merge-multiple: true |
219 |
| - |
220 |
| - - name: Combine coverage & check percentage |
221 |
| - run: | |
222 |
| - python -m coverage combine |
223 |
| - python -m coverage html |
224 |
| - python -m coverage report |
225 |
| -
|
226 |
| - - name: Upload HTML report if check failed. |
227 |
| - uses: actions/upload-artifact@v4 |
228 |
| - with: |
229 |
| - name: html-report |
230 |
| - path: htmlcov |
231 |
| - if: ${{ failure() }} |
232 |
| - |
233 | 184 | lint:
|
234 | 185 | runs-on: ubuntu-latest
|
235 | 186 | strategy:
|
|
0 commit comments