Skip to content

Commit 1f4ce5e

Browse files
authored
Run pytest with --color=yes to force GitHub Actions logs to have color (#3330)
GitHub Actions does not show colour outputs for pytest by default (pytest-dev/pytest#7443), but it can be enabled using `--color=yes` flag.
1 parent 97a6f30 commit 1f4ce5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ max-args=10
166166

167167
[tool.pytest.ini_options]
168168
minversion = "6.0"
169-
addopts = "--verbose --durations=0 --durations-min=0.2 --doctest-modules --mpl --mpl-results-path=results"
169+
addopts = "--verbose --color=yes --durations=0 --durations-min=0.2 --doctest-modules --mpl --mpl-results-path=results"
170170
markers = [
171171
"benchmark: mark a test with custom benchmark settings.",
172172
]

0 commit comments

Comments
 (0)