Updating the version in the config #80
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
name: nf-core CI | |
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
release: | |
types: [published] | |
workflow_dispatch: | |
env: | |
NXF_ANSI_LOG: false | |
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity | |
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})" | |
# Only run on push if this is the nf-core dev branch (merged PRs) | |
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'sanger-tol/ear') }}" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
NXF_VER: | |
- "24.04.2" | |
- "latest-everything" | |
profile: | |
- "conda" | |
- "docker" | |
- "singularity" | |
test_name: | |
- "test" | |
isMaster: | |
- ${{ github.base_ref == 'master' }} | |
# Exclude conda and singularity on dev | |
exclude: | |
- isMaster: false | |
profile: "conda" | |
- isMaster: false | |
profile: "singularity" | |
steps: | |
- name: Check out pipeline code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Nextflow | |
uses: nf-core/setup-nextflow@v2 | |
with: | |
version: "${{ matrix.NXF_VER }}" | |
- name: Download Tiny test data | |
# Download A fungal test data set that is full enough to show some real output. | |
# Needs a kmer db for merqury | |
run: | | |
curl https://tolit.cog.sanger.ac.uk/test-data/resources/treeval/TreeValTinyData.tar.gz | tar xzf - | |
cp TreeValTinyData/assembly/draft/grTriPseu1.fa TreeValTinyData/assembly/draft/grTriPseu1-hap.fa | |
cp TreeValTinyData/assembly/draft/grTriPseu1.fa TreeValTinyData/assembly/draft/grTriPseu1-all_hap.fa | |
- name: Download EAR MerquryFK data | |
# Generated .hist and .ktab files (+ hidden files) that is required to test merquryfk | |
run: | | |
curl https://tolit.cog.sanger.ac.uk/test-data/resources/ear/EAR_merquryfk_input.tar.gz | tar xzf - | |
mv EAR_merquryfk_input TreeValTinyData/genomic_data/pacbio/ | |
- name: Install nf-test | |
uses: nf-core/setup-nf-test@v1 | |
# Test the component | |
- name: Run nf-test | |
run: | | |
nf-test test \ | |
--profile="docker" \ | |
--debug \ | |
--verbose |