Skip to content

Commit 78e8465

Browse files
committed
debug(ci): test CliRunner behavior directly
Add debug step to check: 1. Whether metaspec.__file__ is properly set (not None) 2. Whether CliRunner.invoke shows --command in output 3. Print first 800 chars of help output for comparison This mimics the exact test logic to identify where the discrepancy occurs.
1 parent eb95afa commit 78e8465

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
echo "=== Testing metaspec init --help ==="
4444
metaspec init --help
4545
46+
- name: Debug test environment
47+
run: |
48+
python -c "import metaspec; print('metaspec.__file__:', metaspec.__file__)"
49+
python -c "from metaspec.cli.main import app; from typer.testing import CliRunner; runner = CliRunner(); result = runner.invoke(app, ['contribute', '--help']); print('Test --command present:', '--command' in result.stdout); import sys; sys.stdout.write(result.stdout[:800])"
50+
4651
- name: Run tests
4752
run: |
4853
python -m pytest --cov=metaspec --cov-report=xml --cov-report=term

0 commit comments

Comments
 (0)