Skip to content

Commit 16b7074

Browse files
committed
Use separate unittest-compat jobs for proper coverage testing
1 parent 63c1037 commit 16b7074

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ jobs:
5454
fail-fast: false
5555
matrix:
5656
name: [
57-
"windows-py39-asynctest",
58-
"windows-py39-twisted24",
59-
"windows-py39-twisted25",
57+
"windows-py39-unittest-asynctest",
58+
"windows-py39-unittest-twisted24",
59+
"windows-py39-unittest-twisted25",
6060
"windows-py39-pluggy",
6161
"windows-py39-xdist",
6262
"windows-py310",
@@ -65,9 +65,9 @@ jobs:
6565
"windows-py313",
6666
"windows-py314",
6767

68-
"ubuntu-py39-asynctest",
69-
"ubuntu-py39-twisted24",
70-
"ubuntu-py39-twisted25",
68+
"ubuntu-py39-unittest-asynctest",
69+
"ubuntu-py39-unittest-twisted24",
70+
"ubuntu-py39-unittest-twisted25",
7171
"ubuntu-py39-lsof-numpy-pexpect",
7272
"ubuntu-py39-pluggy",
7373
"ubuntu-py39-freeze",
@@ -90,19 +90,20 @@ jobs:
9090
]
9191

9292
include:
93-
- name: "windows-py39-asynctest"
93+
# Use separate jobs for different unittest flavors (twisted, asynctest) to ensure proper coverage.
94+
- name: "windows-py39-unittest-asynctest"
9495
python: "3.9"
9596
os: windows-latest
96-
tox_env: "py39-twisted24"
97+
tox_env: "py39-asynctest"
9798
use_coverage: true
9899

99-
- name: "windows-py39-twisted24"
100+
- name: "windows-py39-unittest-twisted24"
100101
python: "3.9"
101102
os: windows-latest
102103
tox_env: "py39-twisted24"
103104
use_coverage: true
104105

105-
- name: "windows-py39-twisted25"
106+
- name: "windows-py39-unittest-twisted25"
106107
python: "3.9"
107108
os: windows-latest
108109
tox_env: "py39-twisted25"
@@ -143,19 +144,20 @@ jobs:
143144
os: windows-latest
144145
tox_env: "py314"
145146

146-
- name: "ubuntu-py39-asynctest"
147+
# Use separate jobs for different unittest flavors (twisted, asynctest) to ensure proper coverage.
148+
- name: "ubuntu-py39-unittest-asynctest"
147149
python: "3.9"
148150
os: ubuntu-latest
149151
tox_env: "py39-asynctest"
150152
use_coverage: true
151153

152-
- name: "ubuntu-py39-twisted24"
154+
- name: "ubuntu-py39-unittest-twisted24"
153155
python: "3.9"
154156
os: ubuntu-latest
155157
tox_env: "py39-twisted24"
156158
use_coverage: true
157159

158-
- name: "ubuntu-py39-twisted25"
160+
- name: "ubuntu-py39-unittest-twisted25"
159161
python: "3.9"
160162
os: ubuntu-latest
161163
tox_env: "py39-twisted25"

0 commit comments

Comments
 (0)