-
Notifications
You must be signed in to change notification settings - Fork 6
76 lines (65 loc) · 1.66 KB
/
Copy pathmain.yml
File metadata and controls
76 lines (65 loc) · 1.66 KB
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
# Run tests over snakefile workflow
---
name: Tests
on: # yamllint disable-line rule:truthy
push:
branches: [main, devel]
pull_request:
branches: [main, devel]
env:
CACHE_NUMBER: 0 # Increment this number to invalidate the cache
jobs:
Pre-Commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
- name: Run pre-commit on all files
uses: pre-commit/action@v3.0.1
with:
extra_args: --all-files
Testing:
runs-on: ubuntu-latest
needs:
- Pre-Commit
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: 'true'
- name: Set up caches
uses: actions/cache@v4
with:
path: |
.snakemake/conda
~/.cache/pre-commit/
key: snakemake-conda-${{ env.CACHE_NUMBER }}
- name: Set up channel priority
run: conda config --set channel_priority strict
- name: Clean conda cache
run: conda clean --all --yes
- name: Test workflow - Preprocess
uses: snakemake/snakemake-github-action@v1.25.1
with:
directory: .
snakefile: workflow/Snakefile
args: >
--use-conda
--show-failed-logs
--cores 3
--conda-cleanup-pkgs cache
--latency-wait 5
all
- uses: actions/upload-artifact@v4
if: failure()
with:
name: results
path: |
results/**/*.log
# results/
# reports/
# !**/*.cram
# !**/*.fq.gz
# !**/*.bam
# !**/*.bt2