This commit is contained in:
+3
-17
@@ -10,29 +10,15 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: shell
|
runs-on: shell
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install -r requirements.txt
|
run: pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Run tests (with result capture)
|
- name: Run tests
|
||||||
id: pytest
|
run: python -m pytest tests/ -v
|
||||||
run: |
|
|
||||||
python -m pytest tests/ -v
|
|
||||||
echo "PYTEST_EXIT=$?" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Report success
|
- name: Create issue on failure
|
||||||
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()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
echo "Creating issue..."
|
|
||||||
python scripts/create_failure_issue.py \
|
python scripts/create_failure_issue.py \
|
||||||
--sha "${{ github.sha }}" \
|
--sha "${{ github.sha }}" \
|
||||||
--branch "${{ github.ref_name }}" \
|
--branch "${{ github.ref_name }}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user