-
Notifications
You must be signed in to change notification settings - Fork 88
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
ci: add --color=yes to pytest as needed in github actions #430
Conversation
🤯 this is amazing! For some reason I assumed the GHA logs were black and white. I wonder if there is some neater way to do this though? Some environment variable or something that we can set to help |
We could probably just set |
It looks like this is how |
Also it looks like @jrbourbeau has done this in |
I would find it less clean to put in an environment variable because it would decouple the logic from the location its relevant even though it would avoid repeating the logic. If it is configured in some repo wide config file, it would be applied systematically no matter what even though it may be some edge case when its better with In this PR I've opted to not set I'm happy to adjust this PR to any concrete suggestion getting the job done in another way though! |
I agree with the sentiment here but I think for something as trivial as enabling colours this is fine.
We would effectively be changing the default from My preference would probably be to just throw this in |
53c654d
to
b753f5d
Compare
b753f5d
to
c3f5711
Compare
c3f5711
to
5f9dc77
Compare
@jacobtomlinson I've updated pyproject.toml to configure pytest. |
Thanks! |
GitHub actions doesn't make pytest realize it can emit colors as for example TravisCI did. It is a long standing issue open about this someplace I remember.