From ce2a5b32f5bb59b4a8c3d74d7b6df5a9f2251832 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Tue, 2 Feb 2021 12:18:59 -0600 Subject: [PATCH] refactor: Move away from composite-action --- .github/workflows/pytest-workflow.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pytest-workflow.yml b/.github/workflows/pytest-workflow.yml index 8cc9b9f5..2e2edc69 100644 --- a/.github/workflows/pytest-workflow.yml +++ b/.github/workflows/pytest-workflow.yml @@ -3,6 +3,7 @@ on: [push, pull_request] jobs: changes: + name: Check for changes runs-on: ubuntu-latest outputs: # Expose matched filters as job 'modules' output variable @@ -43,11 +44,24 @@ jobs: key: ${{ runner.os }}-nextflow-${{ matrix.nxf_version }} restore-keys: | ${{ runner.os }}-nextflow- - - name: Nextflow pytest-workflow - uses: Emiller88/pytest-workflow-composite-action@master + + - name: Install Nextflow + env: + NXF_VER: ${{ matrix.nxf_version }} + run: | + wget -qO- get.nextflow.io | bash + sudo mv nextflow /usr/local/bin/ + + - name: Set up Python + uses: actions/setup-python@v2 with: - pytest_tags: ${{ matrix.tags }} - nxf_version: ${{ matrix.nxf_version }} + python-version: "3.x" + - name: Install dependencies + run: python -m pip install --upgrade pip pytest-workflow + + # Test the module + - name: Run pytest-workflow + run: pytest --tag ${{ matrix.tags }} --symlink --wt 2 - name: Upload logs on failure if: ${{ failure() }}