From f8f9155b45e424bac3b1b29cd9bbb2df2605e21c Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Mon, 12 Apr 2021 14:21:52 -0500 Subject: [PATCH] ci: Fix pip skip --- .github/workflows/nf-core-linting.yml | 7 ++++--- .github/workflows/pytest-workflow.yml | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nf-core-linting.yml b/.github/workflows/nf-core-linting.yml index 77e17c51..0f64bf9a 100644 --- a/.github/workflows/nf-core-linting.yml +++ b/.github/workflows/nf-core-linting.yml @@ -39,17 +39,18 @@ jobs: python-version: "3.x" - uses: actions/cache@v2 + id: cache-pip with: path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + key: ${{ runner.os }}-pip - name: Install pip + if: steps.cache-pip.outputs.cache-hit != 'true' run: python -m pip install --upgrade pip # FIXME: Remove this when nf-core modules lint stabilizes and install stable release - name: Install nf-core tools development version + if: steps.cache-pip.outputs.cache-hit != 'true' run: python -m pip install --upgrade --force-reinstall git+https://github.com/nf-core/tools.git@dev - name: Install Nextflow diff --git a/.github/workflows/pytest-workflow.yml b/.github/workflows/pytest-workflow.yml index 02a2cfc1..34a4cabd 100644 --- a/.github/workflows/pytest-workflow.yml +++ b/.github/workflows/pytest-workflow.yml @@ -39,13 +39,13 @@ jobs: python-version: "3.x" - uses: actions/cache@v2 + id: cache-pip with: path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + key: ${{ runner.os }}-pip - name: Install Python dependencies + if: steps.cache-pip.outputs.cache-hit != 'true' run: python -m pip install --upgrade pip pytest-workflow - uses: actions/cache@v2