-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (66 loc) · 1.87 KB
/
main.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
name: 3t-seq test run
on:
release:
types: [ published ]
pull_request:
branches-ignore: []
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout with submodules
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Formatting
uses: github/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.TOKEN }}
VALIDATE_SNAKEMAKE_SNAKEFMT: true
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Linting
uses: snakemake/snakemake-github-action@v1.22.0
with:
directory: tests
snakefile: workflow/Snakefile
args: "--configfile tests/config.yaml --lint"
run-workflow-complete:
runs-on: ubuntu-latest
needs:
- linting
- formatting
steps:
- name: Checkout repository with submodules
uses: actions/checkout@v3
with:
submodules: recursive
lfs: true
- name: Setup Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Add Conda to system path
run: |
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda install -c conda-forge mamba
- name: Setup snakemake
run: |
mamba install -c conda-forge -c bioconda snakemake=7.32.4 singularity
- name: List tests
run: |
ls -R tests
- name: Debug - Before script
run: cat workflow/rules/common.smk
- name: Run workflow
run: |
snakemake --directory tests --configfile tests/config.yaml --profile tests/profile --snakefile workflow/Snakefile
- name: Debug - After script
run: cat workflow/rules/common.smk