Skip to content

Bump codecov/codecov-action from 4.3.1 to 4.4.0 #1978

Bump codecov/codecov-action from 4.3.1 to 4.4.0

Bump codecov/codecov-action from 4.3.1 to 4.4.0 #1978

Workflow file for this run

---
name: Debug
"on":
push:
jobs:
debug:
uses: kdeldycke/workflows/.github/workflows/debug.yaml@v3.4.7
click-color-context:
strategy:
matrix:
os:
- ubuntu-22.04
- macos-13
- windows-2022
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4.1.5
- uses: actions/setup-python@v5.1.0
with:
python-version: "3.12"
- run: |
python -m pip install --upgrade click click-extra
- shell: python
run: |
from click import echo
from click.globals import resolve_color_default
from click._compat import auto_wrap_for_ansi
from click._compat import should_strip_ansi
from click._compat import _default_text_stderr
from click._compat import _default_text_stdout
from click_extra import echo as extra_echo
out_file = _default_text_stdout()
err_file = _default_text_stderr()
print(f"_default_text_stdout() = {out_file}")
print(f"_default_text_stderr() = {err_file}")
print(f"should_strip_ansi() = {should_strip_ansi()}")
print(f"should_strip_ansi(stderr) = {should_strip_ansi(out_file)}")
print(f"should_strip_ansi(stdout) = {should_strip_ansi(err_file)}")
print(f"auto_wrap_for_ansi = {auto_wrap_for_ansi}")
print(f"resolve_color_default() = {resolve_color_default()}")
msg = "\x1b[32m\x1b[1mcoco\x1b[0mmo-\x1b[32m\x1b[1mco\x1b[0mre"
print("----")
echo(msg)
echo(msg, color=None)
echo(msg, color=True)
echo(msg, color=False)
print("----")
extra_echo(msg)
extra_echo(msg, color=None)
extra_echo(msg, color=True)
extra_echo(msg, color=False)
print("----")
if auto_wrap_for_ansi:
for color in [None, True, False]:
file = auto_wrap_for_ansi(out_file, color=color)
file.write(msg + "\n")
file.flush()