debug: add echo steps to verify if:failure() trigger
CI / test (push) Failing after 26s

This commit is contained in:
2026-05-29 21:58:34 +08:00
parent 95281618dd
commit ea61b6a465
+15 -3
View File
@@ -15,12 +15,24 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: python -m pytest tests/ -v
- name: Run tests (with result capture)
id: pytest
run: |
python -m pytest tests/ -v
echo "PYTEST_EXIT=$?" >> $GITHUB_ENV
- name: Create issue on failure
- name: Report success
if: success()
run: echo "Tests passed - all good!"
- name: Report failure
if: failure()
run: echo "Tests failed! Would create issue here."
- name: Create failure issue
if: failure()
run: |
echo "Creating issue..."
python scripts/create_failure_issue.py \
--sha "${{ github.sha }}" \
--branch "${{ github.ref_name }}" \