-
Notifications
You must be signed in to change notification settings - Fork 9
159 lines (151 loc) · 4.73 KB
/
push.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
name: snakemake-actions
on: [push]
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Formatting
uses: github/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_SNAKEMAKE_SNAKEFMT: true
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Linting
uses: ezherman/snakemake-github-action@5027c0e706ada924ab91e0501bd92185fc98de3c
with:
directory: .tests
snakefile: workflow/Snakefile
stagein: "conda config --set channel_priority strict"
args: "--lint"
dry-run:
runs-on: ubuntu-latest
needs:
- linting
- formatting
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Dry-run workflow
uses: ezherman/snakemake-github-action@5027c0e706ada924ab91e0501bd92185fc98de3c
with:
directory: .tests
snakefile: workflow/Snakefile
stagein: "conda config --set channel_priority strict"
args: "--use-conda --show-failed-logs --cores 2 --conda-cleanup-pkgs cache -n"
dry-run-report:
runs-on: ubuntu-latest
needs:
- linting
- formatting
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Dry-run workflow
uses: ezherman/snakemake-github-action@5027c0e706ada924ab91e0501bd92185fc98de3c
with:
directory: .tests
snakefile: workflow/Report
stagein: "conda config --set channel_priority strict"
args: "--use-conda --show-failed-logs --cores 2 --conda-cleanup-pkgs cache -n"
dry-run-metabase:
runs-on: ubuntu-latest
needs:
- linting
- formatting
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Dry-run workflow
uses: ezherman/snakemake-github-action@5027c0e706ada924ab91e0501bd92185fc98de3c
with:
directory: .tests
snakefile: workflow/Metabase
stagein: "conda config --set channel_priority strict"
args: "--use-conda --show-failed-logs --cores 2 --conda-cleanup-pkgs cache -n"
dry-run-bgc:
runs-on: ubuntu-latest
needs:
- linting
- formatting
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Dry-run workflow
uses: ezherman/snakemake-github-action@5027c0e706ada924ab91e0501bd92185fc98de3c
with:
directory: .tests
snakefile: workflow/BGC
stagein: "conda config --set channel_priority strict"
args: "--use-conda --show-failed-logs --cores 2 --conda-cleanup-pkgs cache -n"
dry-run-ppanggolin:
runs-on: ubuntu-latest
needs:
- linting
- formatting
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Dry-run workflow
uses: ezherman/snakemake-github-action@5027c0e706ada924ab91e0501bd92185fc98de3c
with:
directory: .tests
snakefile: workflow/ppanggolin
stagein: "conda config --set channel_priority strict"
args: "--use-conda --show-failed-logs --cores 2 --conda-cleanup-pkgs cache -n"
dry-run-lsabgc:
runs-on: ubuntu-latest
needs:
- linting
- formatting
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Dry-run workflow
uses: ezherman/snakemake-github-action@5027c0e706ada924ab91e0501bd92185fc98de3c
with:
directory: .tests
snakefile: workflow/lsabgc
stagein: "conda config --set channel_priority strict"
args: "--use-conda --show-failed-logs --cores 2 --conda-cleanup-pkgs cache -n"
unit-test:
runs-on: ubuntu-latest
needs:
- dry-run
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- run: pip install bgcflow_wrapper
- run: pip install pytest-cov
- run: pip install alive-progress
- run: pip install snakemake==8.5.2
- name: Test coverage
run: pytest --cov=.tests/unit .tests/unit/
- name: Build coverage file
run: pytest --cov=.tests/unit .tests/unit/ > pytest-coverage.txt
- name: Comment coverage
uses: coroo/pytest-coverage-commentator@v1.0.2
with:
pytest-coverage: pytest-coverage.txt