Skip to content

updated config

updated config #77

Workflow file for this run

name: Test nf-core Modules and Sub-workflows
on:
push:
branches:
- 'github_actions_mza'
workflow_dispatch:
inputs:
runners:
description: 'Runners to test on'
type: choice
options:
- 'ubuntu-latest'
- 'self-hosted'
default: 'ubuntu-latest'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NFT_VER: '0.9.2'
NXF_ANSI_LOG: false
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
NXF_VER: '24.10.1'
jobs:
discover-components:
name: Discover nf-core Components with Tests
runs-on: ubuntu-latest
outputs:
component_list: ${{ steps.get-components.outputs.component_list }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: List nf-core Components with Tests
id: get-components
run: |
components=$(find modules/nf-core subworkflows/nf-core -type f -name "main.nf.test" | sed 's|/tests/main.nf.test||' | jq -R -s -c 'split("\n") | map(select(length > 0))')
if [ "$components" == "[]" ]; then
echo "No components with tests found!"
exit 1
fi
echo "component_list=$components" >> $GITHUB_OUTPUT
shell: bash
- name: Display discovered components
run: |
echo "Discovered components with tests:"
echo '${{ steps.get-components.outputs.component_list }}' | jq .
shell: bash
nf-test:
needs: discover-components
runs-on: ${{ github.event.inputs.runners || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
component: ${{ fromJson(needs.discover-components.outputs.component_list) }}
profile: [singularity, docker, conda]
name: '${{ matrix.profile }} | ${{ matrix.component }}'
env:
SENTIEON_LICENSE_MESSAGE: ${{ secrets.SENTIEON_LICENSE_MESSAGE }}
SENTIEON_ENCRYPTION_KEY: ${{ secrets.SENTIEON_ENCRYPTION_KEY }}
steps:
- name: Clean Workspace
run: |
rm -rf $GITHUB_WORKSPACE/*
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run nf-test Action
uses: ./.github/actions/nf-test-action
with:
profile: ${{ matrix.profile }}
component_path: ${{ matrix.component }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: nf-test-results-${{ matrix.component }}-${{ matrix.profile }}
path: ${{ matrix.component }}/test.tap
retention-days: 5