-
Notifications
You must be signed in to change notification settings - Fork 18
58 lines (50 loc) · 1.7 KB
/
run_all-modules.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This is a workflow to all of the analysis module workflows
#
# This workflow will run with the following triggers
# - Manual trigger
# - Periodic running on a timer
name: Run all analysis workflows
on:
schedule: # run monthly on the 4th (intended to run after docker images are built)
- cron: "0 0 4 * *"
workflow_dispatch:
jobs:
# Modules to run
# Note: only 20 modules can be run per workflow
hello-R:
uses: ./.github/workflows/run_hello-R.yml
hello-python:
uses: ./.github/workflows/run_hello-python.yml
doublet-detection:
uses: ./.github/workflows/run_doublet-detection.yml
cell-type-ewings:
uses: ./.github/workflows/run_cell-type-ewings.yml
## Add additional modules above this comment, and to the needs list below
check-jobs:
if: ${{ always() }}
needs:
- hello-R
- hello-python
- doublet-detection
- cell-type-ewings
runs-on: ubuntu-latest
steps:
- name: Checkout template file
uses: actions/checkout@v4
with:
sparse-checkout: |
.github/cron-issue-templates/all-modules-issue-template.md
sparse-checkout-cone-mode: false
- name: Post issue with results from running all modules
if: contains(needs.*.result, 'failure')
uses: peter-evans/create-issue-from-file@v5
with:
title: Analysis module failing in CI
content-filepath: |
.github/cron-issue-templates/all-modules-issue-template.md
labels: |
OpenScPCA admin
ci
- name: Check for failures or cancelled jobs
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: echo "Job failed" && exit 1