Enable stub mode testing for nf-test compatibility #8
Workflow file for this run
This file contains hidden or 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-test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| NXF_VER: | |
| - "25.04.6" | |
| TEST_FILE: | |
| - tests/modules/fastp.nf.test | |
| - tests/modules/xengsort_classify.nf.test | |
| - tests/modules/xengsort_index.nf.test | |
| - tests/modules/xengsort_summary.nf.test | |
| steps: | |
| - name: Check out pipeline code | |
| uses: actions/checkout@v4 | |
| - name: Install Nextflow | |
| env: | |
| NXF_VER: ${{ matrix.NXF_VER }} | |
| run: | | |
| wget -qO- get.nextflow.io | bash | |
| sudo mv nextflow /usr/local/bin/ | |
| nextflow -version | |
| - name: Install nf-test | |
| uses: nf-core/setup-nf-test@v1 | |
| - name: Run nf-test | |
| run: | | |
| mkdir -p reports | |
| nf-test test ${{ matrix.TEST_FILE }} --profile test,docker --verbose --tap reports/test-results-${{ strategy.job-index }}.tap |