|
1 |
| -name: nf-core CI |
2 |
| -# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors |
3 |
| -on: |
4 |
| - push: |
5 |
| - branches: |
6 |
| - - dev |
7 |
| - pull_request: |
8 |
| - release: |
9 |
| - types: [published] |
10 |
| - |
11 |
| -jobs: |
12 |
| - test: |
13 |
| - name: Run workflow tests |
14 |
| - # Only run on push if this is the nf-core dev branch (merged PRs) |
15 |
| - if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/nanoseq') }} |
16 |
| - runs-on: ubuntu-latest |
17 |
| - env: |
18 |
| - NXF_VER: ${{ matrix.nxf_ver }} |
19 |
| - NXF_ANSI_LOG: false |
20 |
| - strategy: |
21 |
| - matrix: |
22 |
| - # Nextflow versions: check pipeline minimum and current latest |
23 |
| - nxf_ver: ['19.10.0', ''] |
24 |
| - steps: |
25 |
| - - name: Check out pipeline code |
26 |
| - uses: actions/checkout@v2 |
27 |
| - |
28 |
| - - name: Check if Dockerfile or Conda environment changed |
29 |
| - uses: technote-space/get-diff-action@v1 |
30 |
| - with: |
31 |
| - PREFIX_FILTER: | |
32 |
| - Dockerfile |
33 |
| - environment.yml |
34 |
| -
|
35 |
| - - name: Build new docker image |
36 |
| - if: env.GIT_DIFF |
37 |
| - run: docker build --no-cache . -t nfcore/nanoseq:dev |
38 |
| - |
39 |
| - - name: Pull docker image |
40 |
| - if: ${{ !env.GIT_DIFF }} |
41 |
| - run: | |
42 |
| - docker pull nfcore/nanoseq:dev |
43 |
| - docker tag nfcore/nanoseq:dev nfcore/nanoseq:dev |
44 |
| -
|
45 |
| - - name: Install Nextflow |
46 |
| - run: | |
47 |
| - wget -qO- get.nextflow.io | bash |
48 |
| - sudo mv nextflow /usr/local/bin/ |
49 |
| -
|
50 |
| - - name: Run pipeline with test data |
51 |
| - run: | |
52 |
| - nextflow run ${GITHUB_WORKSPACE} -profile test,docker |
53 |
| -
|
54 |
| - profile: |
55 |
| - name: Run profile tests |
56 |
| - if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/nanoseq') }} |
57 |
| - runs-on: ubuntu-latest |
58 |
| - env: |
59 |
| - NXF_VER: '19.10.0' |
60 |
| - NXF_ANSI_LOG: false |
61 |
| - strategy: |
62 |
| - matrix: |
63 |
| - profiles: [test_bc_nodx, test_nobc_dx, test_nobc_nodx, test_nobc_nodx_noaln] |
64 |
| - steps: |
65 |
| - - name: Check out pipeline code |
66 |
| - uses: actions/checkout@v2 |
67 |
| - |
68 |
| - - name: Check if Dockerfile or Conda environment changed |
69 |
| - uses: technote-space/get-diff-action@v1 |
70 |
| - with: |
71 |
| - PREFIX_FILTER: | |
72 |
| - Dockerfile |
73 |
| - environment.yml |
74 |
| -
|
75 |
| - - name: Build new docker image |
76 |
| - if: env.GIT_DIFF |
77 |
| - run: docker build --no-cache . -t nfcore/nanoseq:dev |
78 |
| - |
79 |
| - - name: Pull docker image |
80 |
| - if: ${{ !env.GIT_DIFF }} |
81 |
| - run: | |
82 |
| - docker pull nfcore/nanoseq:dev |
83 |
| - docker tag nfcore/nanoseq:dev nfcore/nanoseq:dev |
84 |
| -
|
85 |
| - - name: Install Nextflow |
86 |
| - run: | |
87 |
| - wget -qO- get.nextflow.io | bash |
88 |
| - sudo mv nextflow /usr/local/bin/ |
89 |
| -
|
90 |
| - - name: Run pipeline with different profiles |
91 |
| - run: | |
92 |
| - nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.profiles }},docker |
93 |
| -
|
94 |
| - parameters: |
95 |
| - name: Run parameter tests |
96 |
| - if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/nanoseq') }} |
97 |
| - runs-on: ubuntu-latest |
98 |
| - env: |
99 |
| - NXF_VER: '19.10.0' |
100 |
| - NXF_ANSI_LOG: false |
101 |
| - strategy: |
102 |
| - matrix: |
103 |
| - parameters: [--aligner graphmap2, --skip_alignment, --skip_qc, --skip_quantification] |
104 |
| - steps: |
105 |
| - - name: Check out pipeline code |
106 |
| - uses: actions/checkout@v2 |
107 |
| - |
108 |
| - - name: Check if Dockerfile or Conda environment changed |
109 |
| - uses: technote-space/get-diff-action@v1 |
110 |
| - with: |
111 |
| - PREFIX_FILTER: | |
112 |
| - Dockerfile |
113 |
| - environment.yml |
114 |
| -
|
115 |
| - - name: Build new docker image |
116 |
| - if: env.GIT_DIFF |
117 |
| - run: docker build --no-cache . -t nfcore/nanoseq:dev |
118 |
| - |
119 |
| - - name: Pull docker image |
120 |
| - if: ${{ !env.GIT_DIFF }} |
121 |
| - run: | |
122 |
| - docker pull nfcore/nanoseq:dev |
123 |
| - docker tag nfcore/nanoseq:dev nfcore/nanoseq:dev |
124 |
| -
|
125 |
| - - name: Install Nextflow |
126 |
| - run: | |
127 |
| - wget -qO- get.nextflow.io | bash |
128 |
| - sudo mv nextflow /usr/local/bin/ |
129 |
| -
|
130 |
| - - name: Run pipeline with different parameters |
131 |
| - run: | |
132 |
| - nextflow run ${GITHUB_WORKSPACE} -profile test,docker ${{ matrix.parameters }} |
133 |
| -
|
134 |
| - quantification: |
135 |
| - name: Run quantification tests |
136 |
| - if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/nanoseq') }} |
137 |
| - runs-on: ubuntu-latest |
138 |
| - env: |
139 |
| - NXF_VER: '19.10.0' |
140 |
| - NXF_ANSI_LOG: false |
141 |
| - strategy: |
142 |
| - matrix: |
143 |
| - parameters: [--quantification_method 'stringtie2', --skip_quantification, --skip_differential_analysis] |
144 |
| - steps: |
145 |
| - - name: Check out pipeline code |
146 |
| - uses: actions/checkout@v2 |
147 |
| - |
148 |
| - - name: Check if Dockerfile or Conda environment changed |
149 |
| - uses: technote-space/get-diff-action@v1 |
150 |
| - with: |
151 |
| - PREFIX_FILTER: | |
152 |
| - Dockerfile |
153 |
| - environment.yml |
154 |
| -
|
155 |
| - - name: Build new docker image |
156 |
| - if: env.GIT_DIFF |
157 |
| - run: docker build --no-cache . -t nfcore/nanoseq:dev |
158 |
| - |
159 |
| - - name: Pull docker image |
160 |
| - if: ${{ !env.GIT_DIFF }} |
161 |
| - run: | |
162 |
| - docker pull nfcore/nanoseq:dev |
163 |
| - docker tag nfcore/nanoseq:dev nfcore/nanoseq:dev |
164 |
| -
|
165 |
| - - name: Install Nextflow |
166 |
| - run: | |
167 |
| - wget -qO- get.nextflow.io | bash |
168 |
| - sudo mv nextflow /usr/local/bin/ |
169 |
| -
|
170 |
| - - name: Run pipeline with different quantification parameters |
171 |
| - run: | |
172 |
| - nextflow run ${GITHUB_WORKSPACE} -profile test_nobc_nodx,docker ${{ matrix.parameters }} |
| 1 | +name: nf-core CI |
| 2 | +# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - dev |
| 7 | + pull_request: |
| 8 | + release: |
| 9 | + types: [published] |
| 10 | + |
| 11 | +jobs: |
| 12 | + test: |
| 13 | + name: Run workflow tests |
| 14 | + # Only run on push if this is the nf-core dev branch (merged PRs) |
| 15 | + if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/nanoseq') }} |
| 16 | + runs-on: ubuntu-latest |
| 17 | + env: |
| 18 | + NXF_VER: ${{ matrix.nxf_ver }} |
| 19 | + NXF_ANSI_LOG: false |
| 20 | + strategy: |
| 21 | + matrix: |
| 22 | + # Nextflow versions: check pipeline minimum and current latest |
| 23 | + nxf_ver: ['19.10.0', ''] |
| 24 | + steps: |
| 25 | + - name: Check out pipeline code |
| 26 | + uses: actions/checkout@v2 |
| 27 | + |
| 28 | + - name: Check if Dockerfile or Conda environment changed |
| 29 | + uses: technote-space/get-diff-action@v1 |
| 30 | + with: |
| 31 | + PREFIX_FILTER: | |
| 32 | + Dockerfile |
| 33 | + environment.yml |
| 34 | +
|
| 35 | + - name: Build new docker image |
| 36 | + if: env.GIT_DIFF |
| 37 | + run: docker build --no-cache . -t nfcore/nanoseq:1.1.0 |
| 38 | + |
| 39 | + - name: Pull docker image |
| 40 | + if: ${{ !env.GIT_DIFF }} |
| 41 | + run: | |
| 42 | + docker pull nfcore/nanoseq:dev |
| 43 | + docker tag nfcore/nanoseq:dev nfcore/nanoseq:1.1.0 |
| 44 | +
|
| 45 | + - name: Install Nextflow |
| 46 | + run: | |
| 47 | + wget -qO- get.nextflow.io | bash |
| 48 | + sudo mv nextflow /usr/local/bin/ |
| 49 | +
|
| 50 | + - name: Run pipeline with test data |
| 51 | + run: | |
| 52 | + nextflow run ${GITHUB_WORKSPACE} -profile test,docker |
| 53 | +
|
| 54 | + profile: |
| 55 | + name: Run profile tests |
| 56 | + if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/nanoseq') }} |
| 57 | + runs-on: ubuntu-latest |
| 58 | + env: |
| 59 | + NXF_VER: '19.10.0' |
| 60 | + NXF_ANSI_LOG: false |
| 61 | + strategy: |
| 62 | + matrix: |
| 63 | + profiles: [test_bc_nodx, test_nobc_dx, test_nobc_nodx, test_nobc_nodx_noaln] |
| 64 | + steps: |
| 65 | + - name: Check out pipeline code |
| 66 | + uses: actions/checkout@v2 |
| 67 | + |
| 68 | + - name: Check if Dockerfile or Conda environment changed |
| 69 | + uses: technote-space/get-diff-action@v1 |
| 70 | + with: |
| 71 | + PREFIX_FILTER: | |
| 72 | + Dockerfile |
| 73 | + environment.yml |
| 74 | +
|
| 75 | + - name: Build new docker image |
| 76 | + if: env.GIT_DIFF |
| 77 | + run: docker build --no-cache . -t nfcore/nanoseq:1.1.0 |
| 78 | + |
| 79 | + - name: Pull docker image |
| 80 | + if: ${{ !env.GIT_DIFF }} |
| 81 | + run: | |
| 82 | + docker pull nfcore/nanoseq:dev |
| 83 | + docker tag nfcore/nanoseq:dev nfcore/nanoseq:1.1.0 |
| 84 | +
|
| 85 | + - name: Install Nextflow |
| 86 | + run: | |
| 87 | + wget -qO- get.nextflow.io | bash |
| 88 | + sudo mv nextflow /usr/local/bin/ |
| 89 | +
|
| 90 | + - name: Run pipeline with different profiles |
| 91 | + run: | |
| 92 | + nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.profiles }},docker |
| 93 | +
|
| 94 | + parameters: |
| 95 | + name: Run parameter tests |
| 96 | + if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/nanoseq') }} |
| 97 | + runs-on: ubuntu-latest |
| 98 | + env: |
| 99 | + NXF_VER: '19.10.0' |
| 100 | + NXF_ANSI_LOG: false |
| 101 | + strategy: |
| 102 | + matrix: |
| 103 | + parameters: [--aligner graphmap2, --skip_alignment, --skip_qc, --skip_quantification] |
| 104 | + steps: |
| 105 | + - name: Check out pipeline code |
| 106 | + uses: actions/checkout@v2 |
| 107 | + |
| 108 | + - name: Check if Dockerfile or Conda environment changed |
| 109 | + uses: technote-space/get-diff-action@v1 |
| 110 | + with: |
| 111 | + PREFIX_FILTER: | |
| 112 | + Dockerfile |
| 113 | + environment.yml |
| 114 | +
|
| 115 | + - name: Build new docker image |
| 116 | + if: env.GIT_DIFF |
| 117 | + run: docker build --no-cache . -t nfcore/nanoseq:1.1.0 |
| 118 | + |
| 119 | + - name: Pull docker image |
| 120 | + if: ${{ !env.GIT_DIFF }} |
| 121 | + run: | |
| 122 | + docker pull nfcore/nanoseq:dev |
| 123 | + docker tag nfcore/nanoseq:dev nfcore/nanoseq:1.1.0 |
| 124 | +
|
| 125 | + - name: Install Nextflow |
| 126 | + run: | |
| 127 | + wget -qO- get.nextflow.io | bash |
| 128 | + sudo mv nextflow /usr/local/bin/ |
| 129 | +
|
| 130 | + - name: Run pipeline with different parameters |
| 131 | + run: | |
| 132 | + nextflow run ${GITHUB_WORKSPACE} -profile test,docker ${{ matrix.parameters }} |
| 133 | +
|
| 134 | + quantification: |
| 135 | + name: Run quantification tests |
| 136 | + if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/nanoseq') }} |
| 137 | + runs-on: ubuntu-latest |
| 138 | + env: |
| 139 | + NXF_VER: '19.10.0' |
| 140 | + NXF_ANSI_LOG: false |
| 141 | + strategy: |
| 142 | + matrix: |
| 143 | + parameters: [--quantification_method 'stringtie2', --skip_quantification, --skip_differential_analysis] |
| 144 | + steps: |
| 145 | + - name: Check out pipeline code |
| 146 | + uses: actions/checkout@v2 |
| 147 | + |
| 148 | + - name: Check if Dockerfile or Conda environment changed |
| 149 | + uses: technote-space/get-diff-action@v1 |
| 150 | + with: |
| 151 | + PREFIX_FILTER: | |
| 152 | + Dockerfile |
| 153 | + environment.yml |
| 154 | +
|
| 155 | + - name: Build new docker image |
| 156 | + if: env.GIT_DIFF |
| 157 | + run: docker build --no-cache . -t nfcore/nanoseq:1.1.0 |
| 158 | + |
| 159 | + - name: Pull docker image |
| 160 | + if: ${{ !env.GIT_DIFF }} |
| 161 | + run: | |
| 162 | + docker pull nfcore/nanoseq:dev |
| 163 | + docker tag nfcore/nanoseq:dev nfcore/nanoseq:1.1.0 |
| 164 | +
|
| 165 | + - name: Install Nextflow |
| 166 | + run: | |
| 167 | + wget -qO- get.nextflow.io | bash |
| 168 | + sudo mv nextflow /usr/local/bin/ |
| 169 | +
|
| 170 | + - name: Run pipeline with different quantification parameters |
| 171 | + run: | |
| 172 | + nextflow run ${GITHUB_WORKSPACE} -profile test_nobc_nodx,docker ${{ matrix.parameters }} |
0 commit comments