-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (52 loc) · 1.88 KB
/
main.yaml
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
name: Main Workflow Using Reusable Workflow
on:
push:
paths:
- biobb_wf_ligand_parameterization/python/workflow.env.yml
- biobb_wf_md_setup/python/workflow.env.yml
workflow_dispatch:
jobs:
filter-files:
name: Filter Files
runs-on: self-hosted
outputs:
biobb_wf_ligand_parameterization_changed: ${{ steps.filter.outputs.biobb_wf_ligand_parameterization }}
biobb_wf_md_setup_changed: ${{ steps.filter.outputs.biobb_wf_md_setup }}
steps:
- name: Filter Changed Files
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
biobb_wf_ligand_parameterization:
- "biobb_wf_ligand_parameterization/python/workflow.env.yml"
biobb_wf_md_setup:
- "biobb_wf_md_setup/python/workflow.env.yml"
tests:
name: Run Tests
strategy:
matrix:
include:
- wf_name: biobb_wf_ligand_parameterization/python/workflow.env.yml
changed: ${{ needs.filter-files.outputs.biobb_wf_ligand_parameterization_changed }}
- wf_name: biobb_wf_md_setup/python/workflow.env.yml
changed: ${{ needs.filter-files.outputs.biobb_wf_md_setup_changed }}
needs: filter-files
if: matrix.changed == 'true'
uses: ./.github/workflows/reusable-test.yaml
with:
wf_name: ${{ matrix.wf_name }}
# biobb_wf_ligand_parameterization:
# name: biobb_wf_ligand_parameterization
# needs: filter-files
# uses: ./.github/workflows/reusable.yaml
# if: needs.filter-files.outputs.biobb_wf_ligand_parameterization_changed == 'true'
# with:
# wf_name: biobb_wf_ligand_parameterization
# biobb_wf_md_setup:
# name: biobb_wf_md_setup
# needs: filter-files
# uses: ./.github/workflows/reusable.yaml
# if: needs.filter-files.outputs.biobb_wf_md_setup_changed == 'true'
# with:
# wf_name: biobb_wf_md_setup