|
1 | | -name: nf-core CI |
2 | 1 | # This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors |
| 2 | +name: nf-core CI |
3 | 3 | on: |
4 | 4 | push: |
5 | 5 | branches: |
6 | | - - dev |
| 6 | + - "dev" |
7 | 7 | pull_request: |
| 8 | + branches: |
| 9 | + - "dev" |
| 10 | + - "master" |
8 | 11 | release: |
9 | 12 | types: [published] |
10 | 13 | workflow_dispatch: |
|
15 | 18 | NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity |
16 | 19 |
|
17 | 20 | concurrency: |
18 | | - group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}" |
| 21 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
19 | 22 | cancel-in-progress: true |
20 | 23 |
|
21 | 24 | jobs: |
| 25 | + define_nxf_versions: |
| 26 | + name: Choose nextflow versions to test against depending on target branch |
| 27 | + runs-on: ubuntu-latest |
| 28 | + outputs: |
| 29 | + matrix: ${{ steps.nxf_versions.outputs.matrix }} |
| 30 | + steps: |
| 31 | + - id: nxf_versions |
| 32 | + run: | |
| 33 | + if [[ "${{ github.event_name }}" == "pull_request" && "${{ github.base_ref }}" == "dev" && "${{ matrix.NXF_VER }}" != "latest-everything" ]]; then |
| 34 | + echo matrix='["latest-everything"]' | tee -a $GITHUB_OUTPUT |
| 35 | + else |
| 36 | + echo matrix='["latest-everything", "23.10.0"]' | tee -a $GITHUB_OUTPUT |
| 37 | + fi |
| 38 | +
|
22 | 39 | test: |
23 | 40 | name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})" |
24 | 41 | # Only run on push if this is the nf-core dev branch (merged PRs) |
25 | 42 | if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/eager') }}" |
26 | 43 | runs-on: ubuntu-latest |
27 | 44 | strategy: |
| 45 | + fail-fast: false |
28 | 46 | matrix: |
29 | 47 | NXF_VER: |
30 | 48 | - "24.04.2" |
|
35 | 53 | - "singularity" |
36 | 54 | test_name: |
37 | 55 | - "test" |
| 56 | + - "test_minimal" |
| 57 | + - "test_modern" |
| 58 | + - "test_microbial" |
| 59 | + - "test_shortdna" |
| 60 | + - "test_humanpopgen" |
| 61 | + - "test_long" |
38 | 62 | isMaster: |
39 | 63 | - ${{ github.base_ref == 'master' }} |
40 | 64 | # Exclude conda and singularity on dev |
|
43 | 67 | profile: "conda" |
44 | 68 | - isMaster: false |
45 | 69 | profile: "singularity" |
46 | | - PARAMS: |
47 | | - - " --preprocessing_tool fastp --preprocessing_adapterlist 'https://github.com/nf-core/test-datasets/raw/modules/data/delete_me/fastp/adapters.fasta'" |
48 | | - - " --preprocessing_tool adapterremoval --preprocessing_adapterlist 'https://github.com/nf-core/test-datasets/raw/modules/data/delete_me/adapterremoval/adapterremoval_adapterlist.txt' --sequencing_qc_tool falco --run_genotyping --genotyping_tool 'freebayes' --genotyping_source 'raw'" |
49 | | - - " --mapping_tool bwamem --run_mapdamage_rescaling --run_pmd_filtering --run_trim_bam --run_genotyping --genotyping_tool 'ug' --genotyping_source 'trimmed'" |
50 | | - - " --mapping_tool bowtie2 --damagecalculation_tool mapdamage --damagecalculation_mapdamage_downsample 100 --run_genotyping --genotyping_tool 'hc' --genotyping_source 'raw'" |
51 | | - - " --mapping_tool mapad" |
52 | | - - " --mapping_tool circularmapper --skip_preprocessing --convert_inputbam --fasta_circular_target 'NC_007596.2' --fasta_circularmapper_elongationfactor 500" |
53 | | - - "_humanbam --run_mtnucratio --run_contamination_estimation_angsd --snpcapture_bed 'https://raw.githubusercontent.com/nf-core/test-datasets/eager/reference/Human/1240K.pos.list_hs37d5.0based.bed.gz' --run_genotyping --genotyping_tool 'pileupcaller' --genotyping_source 'raw'" |
54 | | - - "_humanbam --run_sexdeterrmine --run_genotyping --genotyping_tool 'angsd' --genotyping_source 'raw'" |
55 | | - - "_multiref" ## TODO add damage manipulation here instead once it goes multiref |
56 | 70 | steps: |
57 | 71 | - name: Check out pipeline code |
58 | 72 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 |
|
95 | 109 | - name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}" |
96 | 110 | continue-on-error: ${{ matrix.NXF_VER == 'latest-everything' }} |
97 | 111 | run: | |
98 | | - nextflow run ${GITHUB_WORKSPACE} -profile ${{matrix.profile}},${{ matrix.test_name }}${{ matrix.PARAMS }} --outdir ./results |
| 112 | + nextflow run ${GITHUB_WORKSPACE} -profile ${{matrix.profile}},${{ matrix.test_name }} --outdir ./results |
0 commit comments