Skip to content

Commit aaed23d

Browse files
committed
Use the parallel coverage. Upload the all matching coverage files.
1 parent 8b0237a commit aaed23d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
uses: actions/upload-artifact@v4
7777
with:
7878
name: coverage-mysql-${{ matrix.python_version }}
79-
path: .coverage.mysql.${{ matrix.python_version }}
79+
path: .coverage.mysql.${{ matrix.python_version }}*
8080
include-hidden-files: true
8181

8282

@@ -171,13 +171,13 @@ jobs:
171171
DB_HOST: localhost
172172
DB_PORT: 5432
173173
DJANGO_SELENIUM_TESTS: ${{ matrix.env.DJANGO_SELENIUM_TESTS }}
174-
COVERAGE_FILE: ".coverage.postgres.${{ matrix.python_version }}"
174+
COVERAGE_FILE: ".coverage.${{ matrix.database }}.${{ matrix.python_version }}"
175175

176176
- name: Store coverage file
177177
uses: actions/upload-artifact@v4
178178
with:
179-
name: coverage-postgres-${{ matrix.python_version }}
180-
path: .coverage.postgres.${{ matrix.python_version }}
179+
name: coverage-${{ matrix.database }}-${{ matrix.python_version }}
180+
path: .coverage.${{ matrix.database }}.${{ matrix.python_version }}*
181181
include-hidden-files: true
182182

183183
sqlite:
@@ -229,7 +229,7 @@ jobs:
229229
uses: actions/upload-artifact@v4
230230
with:
231231
name: coverage-sqlite-${{ matrix.python_version }}
232-
path: .coverage.sqlite.${{ matrix.python_version }}
232+
path: .coverage.sqlite.${{ matrix.python_version }}*
233233
include-hidden-files: true
234234

235235
lint:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ skip_empty = true
9898

9999
[tool.coverage.run]
100100
branch = true
101+
parallel = true
101102
source = [
102103
"debug_toolbar",
103104
]

0 commit comments

Comments
 (0)