Testing workflows for Development
This commit is contained in:
15
.github/workflows/unit-test.yml
vendored
15
.github/workflows/unit-test.yml
vendored
@@ -1,12 +1,13 @@
|
|||||||
name: Unit Test
|
name: Unit Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_run:
|
||||||
branches:
|
workflows: ["linters"]
|
||||||
- Development
|
types: [completed] #requested
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
on-success:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@@ -29,3 +30,9 @@ jobs:
|
|||||||
# 6. Run unit tests
|
# 6. Run unit tests
|
||||||
- name: Run pytest
|
- name: Run pytest
|
||||||
run: pytest
|
run: pytest
|
||||||
|
|
||||||
|
on-failure:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
|
steps:
|
||||||
|
- run: echo 'The triggering workflow failed'
|
||||||
Reference in New Issue
Block a user