ci: Fix pip skip

This commit is contained in:
Edmund Miller 2021-04-12 14:21:52 -05:00
parent ec3a2172a6
commit f8f9155b45
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D
2 changed files with 7 additions and 6 deletions

View file

@ -39,17 +39,18 @@ jobs:
python-version: "3.x" python-version: "3.x"
- uses: actions/cache@v2 - uses: actions/cache@v2
id: cache-pip
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} key: ${{ runner.os }}-pip
restore-keys: |
${{ runner.os }}-pip-
- name: Install pip - name: Install pip
if: steps.cache-pip.outputs.cache-hit != 'true'
run: python -m pip install --upgrade pip run: python -m pip install --upgrade pip
# FIXME: Remove this when nf-core modules lint stabilizes and install stable release # FIXME: Remove this when nf-core modules lint stabilizes and install stable release
- name: Install nf-core tools development version - 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 run: python -m pip install --upgrade --force-reinstall git+https://github.com/nf-core/tools.git@dev
- name: Install Nextflow - name: Install Nextflow

View file

@ -39,13 +39,13 @@ jobs:
python-version: "3.x" python-version: "3.x"
- uses: actions/cache@v2 - uses: actions/cache@v2
id: cache-pip
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} key: ${{ runner.os }}-pip
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies - name: Install Python dependencies
if: steps.cache-pip.outputs.cache-hit != 'true'
run: python -m pip install --upgrade pip pytest-workflow run: python -m pip install --upgrade pip pytest-workflow
- uses: actions/cache@v2 - uses: actions/cache@v2