Skip to content

Commit

Permalink
Run pytest with --color=yes to force GitHub Actions logs to have co…
Browse files Browse the repository at this point in the history
…lor (#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.
  • Loading branch information
weiji14 authored Jul 16, 2024
1 parent 97a6f30 commit 1f4ce5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ max-args=10

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

0 comments on commit 1f4ce5e

Please sign in to comment.