From bf165afd1648853e3463f8279a21e660d8eb91ec Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Mon, 12 Apr 2021 14:40:36 -0500 Subject: [PATCH] ci: Seperate out out copying nextflow to bin --- .github/workflows/nf-core-linting.yml | 10 ++++++---- .github/workflows/pytest-workflow.yml | 9 +++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/nf-core-linting.yml b/.github/workflows/nf-core-linting.yml index 11760eb1..5e938048 100644 --- a/.github/workflows/nf-core-linting.yml +++ b/.github/workflows/nf-core-linting.yml @@ -56,16 +56,18 @@ jobs: - uses: actions/cache@v2 id: cache-nextflow with: - path: /usr/local/bin/nextflow + path: nextflow key: ${{ runner.os }}-nextflow - name: Install Nextflow if: steps.cache-nextflow.outputs.cache-hit != 'true' env: + NXF_VER: ${{ matrix.nxf_version }} CAPSULE_LOG: none - run: | - wget -qO- get.nextflow.io | bash - sudo mv nextflow /usr/local/bin/ + run: wget -qO- get.nextflow.io | bash + + - name: Copy nextflow to bin + run: sudo cp nextflow /usr/local/bin/ - name: Lint ${{ matrix.tags }} run: nf-core modules lint . -t ${{ matrix.tags }} diff --git a/.github/workflows/pytest-workflow.yml b/.github/workflows/pytest-workflow.yml index 75cbaaee..465940e4 100644 --- a/.github/workflows/pytest-workflow.yml +++ b/.github/workflows/pytest-workflow.yml @@ -51,7 +51,7 @@ jobs: - uses: actions/cache@v2 id: cache-nextflow with: - path: /usr/local/bin/nextflow + path: nextflow key: ${{ runner.os }}-nextflow - name: Install Nextflow @@ -59,9 +59,10 @@ jobs: env: NXF_VER: ${{ matrix.nxf_version }} CAPSULE_LOG: none - run: | - wget -qO- get.nextflow.io | bash - sudo mv nextflow /usr/local/bin/ + run: wget -qO- get.nextflow.io | bash + + - name: Copy nextflow to bin + run: sudo cp nextflow /usr/local/bin/ - name: Set up Singularity if: matrix.profile == 'singularity'