Skip to content

Commit 622df69

Browse files
committed
debug(ci): add verification to diagnose test failures
Adding debug output to check: - metaspec installation location - contribute_command signature and parameters - whether typer.Option metadata is preserved This will help identify why tests pass locally but fail in CI.
1 parent c51c6c8 commit 622df69

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ jobs:
2929
run: |
3030
uv pip install --system -e ".[dev]"
3131
32+
- name: Verify installation
33+
run: |
34+
python -c "import metaspec; print('metaspec file:', metaspec.__file__)"
35+
python -c "from metaspec.cli.contribute import contribute_command; import inspect; sig = inspect.signature(contribute_command); print('contribute params:', list(sig.parameters.keys())); print('command param:', sig.parameters.get('command'))"
36+
echo "--- Testing CLI help output ---"
37+
python -c "from metaspec.cli.main import app; from typer.testing import CliRunner; runner = CliRunner(); result = runner.invoke(app, ['contribute', '--help']); print('Exit code:', result.exit_code); print('Has --command:', '--command' in result.stdout); print('Help output:'); print(result.stdout[:500])"
38+
3239
- name: Run tests
3340
run: |
3441
python -m pytest --cov=metaspec --cov-report=xml --cov-report=term

0 commit comments

Comments
 (0)