Skip to content

Commit bf57f69

Browse files
committed
Added one job to check if all tests have passed. Makes it easier to configure required tests in GitHub.
1 parent 031e79a commit bf57f69

29 files changed

+348
-0
lines changed

.github/workflows/test-integration-aiohttp.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ jobs:
6060
coverage combine .coverage*
6161
coverage xml -i
6262
codecov --file coverage.xml
63+
64+
check_required_tests:
65+
name: All required tests passed or skipped
66+
needs: test
67+
# Always run this, even if a dependent job failed
68+
if: always()
69+
runs-on: ubuntu-20.04
70+
steps:
71+
- name: Check for failures
72+
if: contains(needs.*.result, 'failure')
73+
run: |
74+
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1

.github/workflows/test-integration-asgi.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ jobs:
6060
coverage combine .coverage*
6161
coverage xml -i
6262
codecov --file coverage.xml
63+
64+
check_required_tests:
65+
name: All required tests passed or skipped
66+
needs: test
67+
# Always run this, even if a dependent job failed
68+
if: always()
69+
runs-on: ubuntu-20.04
70+
steps:
71+
- name: Check for failures
72+
if: contains(needs.*.result, 'failure')
73+
run: |
74+
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1

.github/workflows/test-integration-aws_lambda.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ jobs:
6060
coverage combine .coverage*
6161
coverage xml -i
6262
codecov --file coverage.xml
63+
64+
check_required_tests:
65+
name: All required tests passed or skipped
66+
needs: test
67+
# Always run this, even if a dependent job failed
68+
if: always()
69+
runs-on: ubuntu-20.04
70+
steps:
71+
- name: Check for failures
72+
if: contains(needs.*.result, 'failure')
73+
run: |
74+
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1

.github/workflows/test-integration-beam.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ jobs:
6060
coverage combine .coverage*
6161
coverage xml -i
6262
codecov --file coverage.xml
63+
64+
check_required_tests:
65+
name: All required tests passed or skipped
66+
needs: test
67+
# Always run this, even if a dependent job failed
68+
if: always()
69+
runs-on: ubuntu-20.04
70+
steps:
71+
- name: Check for failures
72+
if: contains(needs.*.result, 'failure')
73+
run: |
74+
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1

.github/workflows/test-integration-boto3.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ jobs:
6060
coverage combine .coverage*
6161
coverage xml -i
6262
codecov --file coverage.xml
63+
64+
check_required_tests:
65+
name: All required tests passed or skipped
66+
needs: test
67+
# Always run this, even if a dependent job failed
68+
if: always()
69+
runs-on: ubuntu-20.04
70+
steps:
71+
- name: Check for failures
72+
if: contains(needs.*.result, 'failure')
73+
run: |
74+
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1

.github/workflows/test-integration-bottle.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ jobs:
6060
coverage combine .coverage*
6161
coverage xml -i
6262
codecov --file coverage.xml
63+
64+
check_required_tests:
65+
name: All required tests passed or skipped
66+
needs: test
67+
# Always run this, even if a dependent job failed
68+
if: always()
69+
runs-on: ubuntu-20.04
70+
steps:
71+
- name: Check for failures
72+
if: contains(needs.*.result, 'failure')
73+
run: |
74+
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1

.github/workflows/test-integration-celery.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ jobs:
6060
coverage combine .coverage*
6161
coverage xml -i
6262
codecov --file coverage.xml
63+
64+
check_required_tests:
65+
name: All required tests passed or skipped
66+
needs: test
67+
# Always run this, even if a dependent job failed
68+
if: always()
69+
runs-on: ubuntu-20.04
70+
steps:
71+
- name: Check for failures
72+
if: contains(needs.*.result, 'failure')
73+
run: |
74+
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1

.github/workflows/test-integration-chalice.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ jobs:
6060
coverage combine .coverage*
6161
coverage xml -i
6262
codecov --file coverage.xml
63+
64+
check_required_tests:
65+
name: All required tests passed or skipped
66+
needs: test
67+
# Always run this, even if a dependent job failed
68+
if: always()
69+
runs-on: ubuntu-20.04
70+
steps:
71+
- name: Check for failures
72+
if: contains(needs.*.result, 'failure')
73+
run: |
74+
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1

.github/workflows/test-integration-django.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,15 @@ jobs:
7777
coverage combine .coverage*
7878
coverage xml -i
7979
codecov --file coverage.xml
80+
81+
check_required_tests:
82+
name: All required tests passed or skipped
83+
needs: test
84+
# Always run this, even if a dependent job failed
85+
if: always()
86+
runs-on: ubuntu-20.04
87+
steps:
88+
- name: Check for failures
89+
if: contains(needs.*.result, 'failure')
90+
run: |
91+
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1

.github/workflows/test-integration-falcon.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ jobs:
6060
coverage combine .coverage*
6161
coverage xml -i
6262
codecov --file coverage.xml
63+
64+
check_required_tests:
65+
name: All required tests passed or skipped
66+
needs: test
67+
# Always run this, even if a dependent job failed
68+
if: always()
69+
runs-on: ubuntu-20.04
70+
steps:
71+
- name: Check for failures
72+
if: contains(needs.*.result, 'failure')
73+
run: |
74+
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1

0 commit comments

Comments
 (0)