Testing workflows for Development

This commit is contained in:
florianuhlig
2025-10-05 02:45:01 +02:00
parent ab661856a5
commit 8744fdd216
2 changed files with 12 additions and 5 deletions

View File

@@ -1,12 +1,13 @@
name: Unit Test
on:
push:
branches:
- Development
workflow_run:
workflows: ["linters"]
types: [completed] #requested
jobs:
build-and-test:
on-success:
runs-on: ubuntu-latest
steps:
@@ -29,3 +30,9 @@ jobs:
# 6. Run unit tests
- name: Run pytest
run: pytest
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'