-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added first version of nf-test actions
- Loading branch information
1 parent
5931d49
commit 77da500
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Run Pipeline Tests | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
env: | ||
NEXTFLOW_VERSION: 23.10.1 | ||
NF_TEST_VERSION: 0.8.4 | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clean workspace before start | ||
run: rm -rf $GITHUB_WORKSPACE/* | ||
|
||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Install nextflow | ||
run: sudo bash; cd /opt; wget "https://github.com/nextflow-io/nextflow/releases/download/v${NEXTFLOW_VERSION}/nextflow"; chmod +x nextflow; | ||
|
||
- name: Install nf-test | ||
run: sudo bash; cd /opt; wget "https://github.com/askimed/nf-test/releases/download/v${NF_TEST_VERSION}/nf-test-${NF_TEST_VERSION}.tar.gz"; tar -xvf "nf-test-${NF_TEST_VERSION}.tar.gz"; chmod +x nf-test; rm "/opt/nf-test-${NF_TEST_VERSION}.tar.gz" | ||
|
||
- name: Add software to path | ||
run: echo "/opt" >> $GITHUB_PATH; | ||
|
||
- name: Run bash processing test | ||
run: nf-test test tests/modules/local/processing.nf.test | ||
|
||
- name: Run r processing test | ||
run: nf-test test tests/modules/local/r_processing.nf.test | ||
|
||
- name: Run dereplication test | ||
run: nf-test test tests/modules/local/vsearch_derep.nf.test | ||
|
||
- name: Run fastq filter test | ||
run: nf-test test tests/modules/local/vsearch_fastq_filter.nf.test | ||
|
||
- name: Run cutadapt test | ||
run: nf-test test tests/modules/nf-core/cutadapt/main.nf.test | ||
|
||
- name: Run pear test | ||
run: nf-test test tests/modules/nf-core/pear/main.nf.test | ||
|
||
- name: Run sintax test | ||
run: nf-test test tests/modules/nf-core/vsearch/sintax/main.nf.test | ||
|
||
- name: Clean workspace after finish | ||
run: rm -rf $GITHUB_WORKSPACE/* |