10
10
11
11
env :
12
12
NXF_ANSI_LOG : false
13
+ NXF_SINGULARITY_CACHEDIR : ${{ github.workspace }}/.singularity
14
+ NXF_SINGULARITY_LIBRARYDIR : ${{ github.workspace }}/.singularity
13
15
14
16
concurrency :
15
17
group : " ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
24
26
strategy :
25
27
matrix :
26
28
NXF_VER :
27
- - " 23.04.0 "
29
+ - " 22.10.1 "
28
30
- " latest-everything"
29
31
steps :
32
+ - name : Get branch names
33
+ # Pulls the names of current branches in repo
34
+ # steps.branch-names.outputs.current_branch is used later and returns the name of the branch the PR is made FROM not to
35
+ id : branch-names
36
+ uses : tj-actions/branch-names@v8
37
+
30
38
- name : Check out pipeline code
31
39
uses : actions/checkout@v3
32
40
@@ -35,10 +43,34 @@ jobs:
35
43
with :
36
44
version : " ${{ matrix.NXF_VER }}"
37
45
46
+ - name : Set up Singularity
47
+ run : |
48
+ mkdir -p $NXF_SINGULARITY_CACHEDIR
49
+ mkdir -p $NXF_SINGULARITY_LIBRARYDIR
50
+
51
+ - name : Setup apptainer
52
+ uses : eWaterCycle/setup-apptainer@main
53
+
54
+ - name : Install Python
55
+ uses : actions/setup-python@v5
56
+ with :
57
+ python-version : " 3.10"
58
+
59
+ - name : Install nf-core
60
+ run : |
61
+ pip install nf-core
62
+
63
+ - name : NF-Core Download - download singularity containers
64
+ # Forcibly download repo on active branch and download SINGULARITY containers into the CACHE dir if not found
65
+ # Must occur after singularity install or will crash trying to dl containers
66
+ # Zip up this fresh download and run the checked out version
67
+ run : |
68
+ nf-core download sanger-tol/ascc --revision ${{ steps.branch-names.outputs.current_branch }} --compress none -d --force --outdir sanger-ascc --container-cache-utilisation amend --container-system singularity
69
+
38
70
- name : Download test data
39
71
# Download A fungal test data set that is full enough to show some real output.
40
72
run : |
41
- curl https://tolit.cog.sanger.ac.uk/test-data/resources/ascc/asccTinyTest .tar.gz | tar xzf -
73
+ curl https://tolit.cog.sanger.ac.uk/test-data/resources/ascc/asccTinyTest_V2 .tar.gz | tar xzf -
42
74
43
75
- name : Download the NCBI taxdump database
44
76
run : |
@@ -48,11 +80,11 @@ jobs:
48
80
- name : Download the FCS-gx database
49
81
run : |
50
82
mkdir FCS_gx
51
- wget -c https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/database/test-only/test-only.taxa.tsv -O FCS_gx/all.taxa.tsv
52
- wget -c https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/database/test-only/test-only.gxi -O FCS_gx/all.gxi
53
- wget -c https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/database/test-only/test-only.gxs -O FCS_gx/all.gxs
54
- wget -c https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/database/test-only/test-only.meta.jsonl -O FCS_gx/all.meta.jsonl
55
- wget -c https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/database/test-only/test-only.blast_div.tsv.gz -O FCS_gx/all.blast_div.tsv.gz
83
+ wget -cq https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/database/test-only/test-only.taxa.tsv -O FCS_gx/all.taxa.tsv
84
+ wget -cq https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/database/test-only/test-only.gxi -O FCS_gx/all.gxi
85
+ wget -cq https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/database/test-only/test-only.gxs -O FCS_gx/all.gxs
86
+ wget -cq https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/database/test-only/test-only.meta.jsonl -O FCS_gx/all.meta.jsonl
87
+ wget -cq https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/database/test-only/test-only.blast_div.tsv.gz -O FCS_gx/all.blast_div.tsv.gz
56
88
57
89
- name : Download the BUSCO lineage database
58
90
run : |
@@ -72,7 +104,12 @@ jobs:
72
104
- name : Download the pacbio barcode
73
105
run : |
74
106
mkdir pacbio_barcode
75
- wget -O pacbio_barcode/SMRTbell_Barcoded_Adapter_Plate_3.0_bc2001-bc2096.fasta_.zip -c https://www.pacb.com/wp-content/uploads/SMRTbell_Barcoded_Adapter_Plate_3.0_bc2001-bc2096.fasta_.zip && cd pacbio_barcode && unzip SMRTbell_Barcoded_Adapter_Plate_3.0_bc2001-bc2096.fasta_.zip && mv SMRTbell_Barcoded_Adapter_Plate_3.0_bc2001-bc2096.fasta pacbio_adaptors.fa && rm -rf SMRTbell_Barcoded_Adapter_Plate_3.0_bc2001-bc2096.fasta_.zip __MACOSX && cd ..
107
+ wget -O pacbio_barcode/SMRTbell_Barcoded_Adapter_Plate_3.0_bc2001-bc2096.fasta_.zip -c https://www.pacb.com/wp-content/uploads/SMRTbell_Barcoded_Adapter_Plate_3.0_bc2001-bc2096.fasta_.zip
108
+ cd pacbio_barcode
109
+ unzip SMRTbell_Barcoded_Adapter_Plate_3.0_bc2001-bc2096.fasta_.zip
110
+ mv SMRTbell_Barcoded_Adapter_Plate_3.0_bc2001-bc2096.fasta pacbio_adaptors.fa
111
+ rm -rf SMRTbell_Barcoded_Adapter_Plate_3.0_bc2001-bc2096.fasta_.zip __MACOSX
112
+ cd ../
76
113
77
114
- name : Download the subset of Diamond database
78
115
run : |
84
121
mkdir vecscreen
85
122
curl -L https://ftp.ncbi.nlm.nih.gov/blast/db/v4/16SMicrobial_v4.tar.gz | tar -C vecscreen -xzf -
86
123
87
- - name : Run pipeline with test data
124
+ - name : Singularity - Run FULL pipeline with test data
88
125
# TODO nf-core: You can customise CI pipeline run tests as required
89
126
# For example: adding multiple test runs with different parameters
90
127
# Remember that you can parallelise this by using strategy.matrix
91
128
run : |
92
- nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
129
+ nextflow run ${GITHUB_WORKSPACE} -profile test,singularity --outdir ./results --steps ALL
0 commit comments