File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -205,12 +205,17 @@ def is_log_grouping_enabled(options: Parsed) -> bool:
205
205
# As --parallel-live option doesn't seem to be working correctly,
206
206
# this condition is more conservative compared to the plugin for tox 3.
207
207
if hasattr (options , "parallel" ):
208
- if options .parallel > 0 :
209
- # Case for `tox p` or `tox -p <num>`
210
- return False
211
- elif options .parallel is None :
208
+ if options .parallel is None :
212
209
# Case for `tox -p`
213
210
return False
211
+ elif isinstance (options .parallel , int ) and options .parallel > 0 :
212
+ # Case for `tox p` or `tox -p <num>`
213
+ return False
214
+ logger .warning (
215
+ "tox-gh-actions couldn't understand the parallel option. "
216
+ "ignoring the given option: %s" ,
217
+ options .parallel ,
218
+ )
214
219
215
220
return True
216
221
You can’t perform that action at this time.
0 commit comments