-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (54 loc) · 1.63 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
58
name: MosaiCatcher basic checks
on:
schedule:
# Run every Sunday at 00:00 UTC on the master branch
- cron: "0 0 * * 0"
# branches:
# - master
push:
branches:
- "*"
- "!master"
jobs:
# WORK
Formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Formatting
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_SNAKEMAKE_SNAKEFMT: true
Linting:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Linting
uses: snakemake/[email protected]
with:
directory: .
snakefile: ./workflow/Snakefile
args: "--lint"
Testing:
runs-on: ubuntu-latest
# needs:
# - Linting
# - Formatting
steps:
- uses: actions/[email protected]
- name: Testing data
uses: snakemake/[email protected]
with:
directory: .
snakefile: ./workflow/Snakefile
stagein: "conda config --set channel_priority flexible"
args: "--cores 1 --use-conda --latency-wait 60 --configfile .tests/config/simple_config.yaml --conda-frontend mamba -p --verbose --debug"
- name: Testing report
uses: snakemake/[email protected]
with:
directory: .
snakefile: ./workflow/Snakefile
args: "--cores 1 --use-conda --latency-wait 60 --configfile .tests/config/simple_config.yaml --conda-frontend mamba --report report.zip"