Skip to content

Commit a6451af

Browse files
authored
Merge pull request #181 from ymyzk/fix-parallel-warning
Fix warning message when tox or tox -p 0 is used to run tox
2 parents 83f89d1 + b56c38e commit a6451af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tox_gh_actions/plugin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ def is_log_grouping_enabled(options: Parsed) -> bool:
211211
elif isinstance(options.parallel, int) and options.parallel > 0:
212212
# Case for `tox p` or `tox -p <num>`
213213
return False
214+
elif isinstance(options.parallel, int) and options.parallel = 0:
215+
# Case for `tox` or `tox -p 0`
216+
# tox will disable the parallel execution
217+
return True
214218
logger.warning(
215219
"tox-gh-actions couldn't understand the parallel option. "
216220
"ignoring the given option: %s",

0 commit comments

Comments
 (0)