-
Notifications
You must be signed in to change notification settings - Fork 2
80 lines (69 loc) · 2.31 KB
/
ci.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
name: CI
# This workflow runs the pipeline with the minimal test dataset to check that
# it completes without any syntax errors
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
draft: true
env:
NXF_ANSI_LOG: false
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true
jobs:
test:
name: Install and run self-test pipeline
# Only run on push if this is in the main repository
if: "${{ github.repository == 'genomic-medicine-sweden/gms_16s' }}"
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "24.10.0"
steps:
- name: Check out pipeline code
uses: actions/checkout@v3
- name: Install Nextflow
# For running (locally) with ACT, we use a docker image with Nextflow pre-installed
if: "${{ ! github.event.act }}"
uses: nf-core/setup-nextflow@v1
with:
version: "${{ matrix.NXF_VER }}"
- name: Install nf-test
uses: nf-core/setup-nf-test@v1
- name: Install Singularity
# For running (locally) with ACT, we use a docker image with Singularity already installed
if: "${{ ! github.event.act }}"
run: |
wget https://github.com/apptainer/singularity/releases/download/v3.8.7/singularity-container_3.8.7_amd64.deb && sudo dpkg -i singularity-container_3.8.7_amd64.deb
- name: Report disk-usage before make install
run:
df -h
- name: Run Make install
run:
make install
- name: Report disk-usage after make install
run:
df -h
#- name: Run pipeline with test data
# run: |
# nextflow \
# -log $(pwd)/nextflow.log \
# run main.nf \
# --outdir results \
# --db $(pwd)/assets/databases/emu_database \
# --seqtype map-ont \
# -profile singularity,test \
# --quality_filtering \
# --longread_qc_qualityfilter_minlength 1200 \
# --longread_qc_qualityfilter_maxlength 1800 \
# --merge_fastq_pass $(pwd)/assets/test_assets/ci; \
- name: Run nf-test
run: |
nf-test test tests/main.nf.test