mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
ci: Setup multiple profiles for testing
Added conda and singularity
This commit is contained in:
parent
688cc05fe8
commit
654c6225f0
1 changed files with 15 additions and 1 deletions
16
.github/workflows/pytest-workflow.yml
vendored
16
.github/workflows/pytest-workflow.yml
vendored
|
@ -24,6 +24,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
nxf_version: ['20.11.0-edge']
|
nxf_version: ['20.11.0-edge']
|
||||||
tags: ['${{ fromJson(needs.changes.outputs.modules) }}']
|
tags: ['${{ fromJson(needs.changes.outputs.modules) }}']
|
||||||
|
profile: ['docker', 'singularity', 'conda' ]
|
||||||
env:
|
env:
|
||||||
NXF_ANSI_LOG: false
|
NXF_ANSI_LOG: false
|
||||||
steps:
|
steps:
|
||||||
|
@ -59,9 +60,22 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: python -m pip install --upgrade pip pytest-workflow
|
run: python -m pip install --upgrade pip pytest-workflow
|
||||||
|
|
||||||
|
- name: Set up Singularity
|
||||||
|
if: matrix.profile == 'singularity'
|
||||||
|
uses: eWaterCycle/setup-singularity@v5
|
||||||
|
with:
|
||||||
|
singularity-version: 3.6.4
|
||||||
|
|
||||||
|
- name: Setup conda
|
||||||
|
if: matrix.profile == 'conda'
|
||||||
|
uses: conda-incubator/setup-miniconda@v2
|
||||||
|
with:
|
||||||
|
auto-update-conda: true
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- name: Run pytest-workflow
|
- name: Run pytest-workflow
|
||||||
run: PROFILE=docker pytest --tag ${{ matrix.tags }} --symlink --wt 2
|
run: PROFILE=${{ matrix.profile }} pytest --tag ${{ matrix.tags }} --symlink --wt 2
|
||||||
|
|
||||||
- name: Upload logs on failure
|
- name: Upload logs on failure
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
|
|
Loading…
Reference in a new issue