ci: Setup multiple profiles for testing

Added conda and singularity
This commit is contained in:
Edmund Miller 2021-02-02 15:38:51 -06:00
parent 688cc05fe8
commit 654c6225f0
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D

View file

@ -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() }}