diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 795499c1270..e5251ebdc45 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -97,25 +97,14 @@ jobs: - name: Install nf-core tools development version run: python -m pip install --upgrade --force-reinstall git+https://github.com/nf-core/tools.git@dev - - name: Install Nextflow - env: - CAPSULE_LOG: none - run: | - wget -qO- get.nextflow.io | bash - sudo mv nextflow /usr/local/bin/ + - name: Setup Nextflow + uses: nf-core/setup-nextflow@v1 - name: Lint ${{ matrix.tags }} run: nf-core modules lint ${{ matrix.tags }} # HACK if: startsWith( matrix.tags, 'subworkflow' ) != true - - uses: actions/cache@v3 - with: - path: /usr/local/bin/nextflow - key: ${{ runner.os }} - restore-keys: | - ${{ runner.os }} - pytest: runs-on: ubuntu-20.04 name: pytest @@ -278,19 +267,10 @@ jobs: - name: Install Python dependencies run: python -m pip install --upgrade pip pytest-workflow cryptography - - uses: actions/cache@v3 + - name: Setup Nextflow ${{ matrix.NXF_VER }} + uses: nf-core/setup-nextflow@v1 with: - path: /usr/local/bin/nextflow - key: ${{ runner.os }} - restore-keys: | - ${{ runner.os }}-nextflow- - - - name: Install Nextflow - env: - CAPSULE_LOG: none - run: | - wget -qO- get.nextflow.io | bash - sudo mv nextflow /usr/local/bin/ + version: "${{ matrix.NXF_VER }}" - name: Set up Singularity if: matrix.profile == 'singularity' @@ -458,19 +438,8 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: /usr/local/bin/nextflow - key: ${{ runner.os }} - restore-keys: | - ${{ runner.os }}-nextflow- - - - name: Install Nextflow - env: - CAPSULE_LOG: none - run: | - wget -qO- get.nextflow.io | bash - sudo mv nextflow /usr/local/bin/ + - name: Setup Nextflow + uses: nf-core/setup-nextflow@v1 - name: Cache nf-test installation id: cache-software