-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colour output when running on CI platforms that support it #243
Labels
Comments
darrenburns
added
enhancement
New feature or request
good first issue
Good for newcomers
labels
May 30, 2021
Hi @darrenburns, I can work on this issue if no one else has. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
GitHub Actions supports colour terminal output, but Rich disables it when it detects it's not writing to a terminal.
We should check environment variables, and if we're on a CI platform that we know supports colours, force Rich to write them as described here: Textualize/rich#52 (comment)
We can detect that we're running on GitHub Actions by looking at the env var described in here: https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
We should also allow the user to force colour output by passing a command line flag.
Example of output in our CI pipeline just now:
The text was updated successfully, but these errors were encountered: