Skip to content

Commit

Permalink
Add debugging steps to PyTest workflow for better failure diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneholloman committed Nov 23, 2024
1 parent 74474ce commit 881a55c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,13 @@ jobs:
PYTHONPATH: src
run: |
pytest -v tests/test_codemapper.py || (cat ./_codemaps/codemapper_codemap.md && exit 1)
- name: Debugging
if: failure()
run: |
echo "Listing files in the current directory:"
ls -la
echo "Listing files in the _codemaps directory:"
ls -la _codemaps
echo "Displaying the contents of the generated markdown file:"
cat ./_codemaps/codemapper_codemap.md || echo "Markdown file not found"

0 comments on commit 881a55c

Please sign in to comment.