Skip to content

Commit cc7475b

Browse files
authored
ci: add cron schedule and integration guardian job (#106)
1 parent 00a9a38 commit cc7475b

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/ci-cloud.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: Cloud integration
22

33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
4-
on: [push, workflow_dispatch]
4+
on:
5+
push:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: "0 0 * * *"
59

610
defaults:
711
run:
@@ -56,3 +60,19 @@ jobs:
5660
env_vars: OS,PYTHON
5761
name: codecov-umbrella
5862
fail_ci_if_error: false
63+
64+
integration-guardian:
65+
runs-on: ubuntu-latest
66+
needs: integration
67+
if: always()
68+
steps:
69+
- run: echo "${{ needs.integration.result }}"
70+
- name: failing...
71+
if: needs.integration.result == 'failure'
72+
run: exit 1
73+
- name: cancelled or skipped...
74+
if: contains(fromJSON('["cancelled", "skipped"]'), needs.integration.result)
75+
timeout-minutes: 1
76+
run: sleep 90
77+
78+
# todo add job to report failing tests with cron

0 commit comments

Comments
 (0)