Skip to content

Commit 164789d

Browse files
committed
ci: aggregate checks with guardian
1 parent e8d70bc commit 164789d

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.github/workflows/ci-pkg-install.yml

+15
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,18 @@ jobs:
103103
LIGHTING_TESTING: 1 # path for require wrapper
104104
PY_IGNORE_IMPORTMISMATCH: 1
105105
run: python -m pytest src/lit/${PKG_NAME} --ignore-glob="**/cli/*-template/**" --doctest-plus
106+
107+
108+
install-pkg-guardian:
109+
runs-on: ubuntu-latest
110+
needs: install-pkg
111+
if: always()
112+
steps:
113+
- run: echo "${{ needs.install-pkg.result }}"
114+
- name: failing...
115+
if: needs.install-pkg.result == 'failure'
116+
run: exit 1
117+
- name: cancelled or skipped...
118+
if: contains(fromJSON('["cancelled", "skipped"]'), needs.install-pkg.result)
119+
timeout-minutes: 1
120+
run: sleep 90

.github/workflows/ci-tests-fabric.yml

+15
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,18 @@ jobs:
186186
flags: ${{ env.COVERAGE_SCOPE }},cpu,pytest,python${{ matrix.python-version }}
187187
name: CPU-coverage
188188
fail_ci_if_error: false
189+
190+
191+
fabric-cpu-guardian:
192+
runs-on: ubuntu-latest
193+
needs: fabric-cpu
194+
if: always()
195+
steps:
196+
- run: echo "${{ needs.fabric-cpu.result }}"
197+
- name: failing...
198+
if: needs.fabric-cpu.result == 'failure'
199+
run: exit 1
200+
- name: cancelled or skipped...
201+
if: contains(fromJSON('["cancelled", "skipped"]'), needs.fabric-cpu.result)
202+
timeout-minutes: 1
203+
run: sleep 90

.github/workflows/ci-tests-pytorch.yml

+15
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,18 @@ jobs:
223223
flags: ${{ env.COVERAGE_SCOPE }},cpu,pytest-full,python${{ matrix.python-version }},pytorch${{ matrix.pytorch-version }}
224224
name: CPU-coverage
225225
fail_ci_if_error: false
226+
227+
228+
pl-cpu-guardian:
229+
runs-on: ubuntu-latest
230+
needs: pl-cpu
231+
if: always()
232+
steps:
233+
- run: echo "${{ needs.pl-cpu.result }}"
234+
- name: failing...
235+
if: needs.pl-cpu.result == 'failure'
236+
run: exit 1
237+
- name: cancelled or skipped...
238+
if: contains(fromJSON('["cancelled", "skipped"]'), needs.pl-cpu.result)
239+
timeout-minutes: 1
240+
run: sleep 90

0 commit comments

Comments
 (0)