Skip to content

Commit dc41ce2

Browse files
committed
fix(ci): Capture stdout in pytest
1 parent 4db1b26 commit dc41ce2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/client-python.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Execute python tests
4646
run: |
4747
uv pip install . # need to install without --no-deps to work around non-portable dependency resolution in `uv pip compile`
48-
uv run pytest --cov=src --cov-report=xml --junitxml=junit.xml
48+
uv run pytest -s --cov=src --cov-report=xml --junitxml=junit.xml
4949
- name: Upload results to Codecov
5050
uses: codecov/codecov-action@v4
5151
with:

client/tests/integration/test_cli.py

+4
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@ def test_help(runner: CliRunner, command: str, flag: str) -> None:
1515
"""Test that the help message is displayed correctly for all commands."""
1616

1717
result = runner.invoke(cli, [command, flag] if command else [flag])
18+
19+
if result.exit_code != 0:
20+
print(result.output) # aid debugging in CI
21+
1822
assert result.exit_code == 0
1923
assert "usage" in result.output

0 commit comments

Comments
 (0)