hugovk / norwegianblue

CLI to show end-of-life dates for a number of products.
https://endoflife.date
MIT License
72 stars 4 forks source link

Disable colour to fix CI #190

Closed hugovk closed 5 months ago

hugovk commented 5 months ago

The CI started failing like this:

image

Because the FORCE_COLOR=1 from the workflow is being passed to the tests, and adding colour to the output.

Let's instead disable colour for the affected tests by setting NO_COLOR to True, like we do with another, because colour isn't relevant to these tests.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (46f649c) 98.97% compared to head (60c1d0b) 98.98%. Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #190 +/- ## ======================================= Coverage 98.97% 98.98% ======================================= Files 7 7 Lines 391 393 +2 ======================================= + Hits 387 389 +2 Misses 4 4 ``` | [Flag](https://app.codecov.io/gh/hugovk/norwegianblue/pull/190/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Hugo+van+Kemenade) | Coverage Δ | | |---|---|---| | [macos-latest](https://app.codecov.io/gh/hugovk/norwegianblue/pull/190/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Hugo+van+Kemenade) | `98.98% <100.00%> (+<0.01%)` | :arrow_up: | | [ubuntu-latest](https://app.codecov.io/gh/hugovk/norwegianblue/pull/190/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Hugo+van+Kemenade) | `98.98% <100.00%> (+<0.01%)` | :arrow_up: | | [windows-latest](https://app.codecov.io/gh/hugovk/norwegianblue/pull/190/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Hugo+van+Kemenade) | `98.98% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Hugo+van+Kemenade#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.