From 654c6225f01de7a6ab916886df4b4bc60ff73320 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Tue, 2 Feb 2021 15:38:51 -0600 Subject: [PATCH] ci: Setup multiple profiles for testing Added conda and singularity --- .github/workflows/pytest-workflow.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest-workflow.yml b/.github/workflows/pytest-workflow.yml index b3775870..50e8c53c 100644 --- a/.github/workflows/pytest-workflow.yml +++ b/.github/workflows/pytest-workflow.yml @@ -24,6 +24,7 @@ jobs: matrix: nxf_version: ['20.11.0-edge'] tags: ['${{ fromJson(needs.changes.outputs.modules) }}'] + profile: ['docker', 'singularity', 'conda' ] env: NXF_ANSI_LOG: false steps: @@ -59,9 +60,22 @@ jobs: - name: Install dependencies 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 - 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 if: ${{ failure() }}