Add subworkflow for merging SpatialData #280
Workflow file for this run
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: | |
branches: | |
- dev | |
- master | |
release: | |
types: [published] | |
workflow_dispatch: | |
env: | |
NXF_ANSI_LOG: false | |
CAPSULE_LOG: none | |
NFT_VER: "0.9.0" | |
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.nf_test_files }} | ${{ matrix.NXF_VER }} | ${{ 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 == 'nf-core/spatialvi') }}" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
NXF_VER: | |
- "24.04.2" | |
- "latest-everything" | |
profile: | |
- "docker" | |
- "singularity" | |
nf_test_files: | |
- tests/pipeline/test_spaceranger_ffpe_v1.nf.test | |
- tests/pipeline/test_spaceranger_ffpe_v2_cytassist.nf.test | |
- tests/pipeline/test_downstream.nf.test | |
isMaster: | |
- ${{ github.base_ref == 'master' }} | |
# Exclude singularity on dev | |
exclude: | |
- isMaster: false | |
profile: "singularity" | |
steps: | |
- name: Check out pipeline code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
- name: Set up Nextflow | |
uses: nf-core/setup-nextflow@v2 | |
with: | |
version: "${{ matrix.NXF_VER }}" | |
- name: Set up Apptainer | |
if: matrix.profile == 'singularity' | |
uses: eWaterCycle/setup-apptainer@main | |
- name: Set up Singularity | |
if: matrix.profile == 'singularity' | |
run: | | |
mkdir -p $NXF_SINGULARITY_CACHEDIR | |
mkdir -p $NXF_SINGULARITY_LIBRARYDIR | |
- name: Install nf-test | |
uses: nf-core/setup-nf-test@v1 | |
with: | |
version: ${{ env.NFT_VER }} | |
- name: Clean up Disk space | |
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 | |
- name: Run nf-test | |
run: nf-test test --verbose --profile "+${{ matrix.profile }}" --tap=test.tap ${{ matrix.nf_test_files }} | |
- 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 |