Skip to content

Clean up pipeline tests #1295

Clean up pipeline tests

Clean up pipeline tests #1295

Workflow file for this run

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
NFTEST_VER: "0.9.0"
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true
permissions:
checks: write
jobs:
test:
name: ${{ matrix.tags }} | ${{ matrix.profile }} | NF-${{ matrix.NXF_VER }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
NXF_VER:
- "24.04.2"
- "latest-everything"
tags:
- "samplesheet"
- "samplesheet_multisample_bam"
- "samplesheet_multisample_ont_bam"
- "SHORT_VARIANT_CALLING"
- "SNV_ANNOTATION"
- "CALL_SVS"
- "ANNOTATE_SVS"
- "RANK_VARIANTS"
profile:
- "docker"
steps:
- name: Check out pipeline code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install Nextflow
uses: nf-core/setup-nextflow@v2
with:
version: "${{ matrix.NXF_VER }}"
- uses: nf-core/setup-nf-test@v1
with:
version: ${{ env.NFTEST_VER }}
- uses: actions/setup-python@v4
with:
python-version: "3.11"
architecture: "x64"
- name: Cache pdiff
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: cache-pip-pdiff
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-pdiff
- name: Install pdiff
run: python -m pip install --upgrade pip pdiff cryptography
- name: Run nf-test
run: |
nf-test test --verbose --tag ${{ matrix.tags }} --profile "+${{ matrix.profile }}" --junitxml=test.xml --tap=test.tap
- uses: pcolby/tap-summary@v1
with:
path: >-
test.tap
- name: Output log on failure
if: failure()
run: |
sudo apt install bat > /dev/null
batcat --decorations=always --color=always ${{ github.workspace }}/.nf-test/tests/*/meta/nextflow.log
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: test.xml