-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (61 loc) · 3.24 KB
/
dryrun.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
59
60
61
62
63
64
name: Dry Runs
on:
push:
jobs:
dry_run_paired_end:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: docker://snakemake/snakemake:v7.32.4
- name: Dry Run with test data
run: |
docker run -h cn0000 -v $PWD:/opt2 -w /opt2 snakemake/snakemake:v7.32.4 /bin/bash -c \
"source get_submods.sh; pip install -r requirements.txt; ./weave run --sheetname paired_end.csv -s /opt2/.tests/paired_end -o /opt2/.tests/dry_run_out --local --dry-run /opt2/.tests/paired_end"
- name: View the pipeline config file
run: |
echo "Generated config file for pipeline...." && cat $PWD/.tests/dry_run_out/paired_end/.config/config_job_0.json
- name: Lint Snakefile
continue-on-error: true
run: |
docker run -e SNK_CONFIG='/opt2/.tests/dry_run_out/paired_end/.config/config_job_0.json' -v $PWD:/opt2 snakemake/snakemake:stable snakemake --lint -s /opt2/workflow/Snakefile -d /opt2/workflow || \
echo 'There may have been a few warnings or errors. Please read through the log to determine if its harmless.'
dry_run_latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: docker://snakemake/snakemake:stable
- name: Dry Run with test data
run: |
docker run -h cn0000 -v $PWD:/opt2 -w /opt2 snakemake/snakemake:stable /bin/bash -c \
"source get_submods.sh; pip install -r requirements.txt; ./weave run --sheetname paired_end.csv -s /opt2/.tests/paired_end -o /opt2/.tests/dry_run_out --local --dry-run /opt2/.tests/paired_end"
- name: View the pipeline config file
run: |
echo "Generated config file for pipeline...." && cat $PWD/.tests/dry_run_out/paired_end/.config/config_job_0.json
- name: Lint Snakefile
continue-on-error: true
run: |
docker run -e SNK_CONFIG='/opt2/.tests/dry_run_out/paired_end/.config/config_job_0.json' -v $PWD:/opt2 snakemake/snakemake:stable snakemake --lint -s /opt2/workflow/Snakefile -d /opt2/workflow || \
echo 'There may have been a few warnings or errors. Please read through the log to determine if its harmless.'
dry_run_single_end:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: docker://snakemake/snakemake:v7.32.4
- name: Dry Run with test data
run: |
docker run -h cn0000 -v $PWD:/opt2 -w /opt2 snakemake/snakemake:v7.32.4 /bin/bash -c \
"source get_submods.sh; pip install -r requirements.txt;./weave run --sheetname single_end.csv -s /opt2/.tests/single_end -o /opt2/.tests/dry_run_out --local --dry-run /opt2/.tests/single_end"
- name: View the pipeline config file
run: |
echo "Generated config file for pipeline...." && cat $PWD/.tests/dry_run_out/single_end/.config/config_job_0.json
- name: Lint Snakefile
continue-on-error: true
run: |
docker run -e SNK_CONFIG='/opt2/.tests/dry_run_out/single_end/.config/config_job_0.json' -v $PWD:/opt2 snakemake/snakemake:stable snakemake --lint -s /opt2/workflow/Snakefile -d /opt2/workflow || \
echo 'There may have been a few warnings or errors. Please read through the log to determine if its harmless.'