Skip to content

Commit

Permalink
Merge pull request #2450 from mashehu/add-retry-functionality
Browse files Browse the repository at this point in the history
use caching from setup-python
  • Loading branch information
mashehu authored Sep 28, 2023
2 parents 42ba2e6 + c47932a commit 15129f9
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ concurrency:
cancel-in-progress: true

env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
pytest:
Expand All @@ -42,18 +42,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Cache python dependencies
uses: actions/cache@v3
id: pip_cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- if: ${{ steps.pip_cache.outputs.cache-hit != 'true' }}
name: Install python dependencies
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip -r requirements-dev.txt
pip install -e .
Expand All @@ -65,18 +55,11 @@ jobs:
sudo apt remove git git-man
sudo add-apt-repository --remove ppa:git-core/ppa
sudo apt install git
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m')" >> $GITHUB_ENV

- name: Cache Nextflow
uses: actions/cache@v3
id: nfcore_cache
with:
path: ~/.nextflow
key: ${{ runner.os }}-nextflow-${{ hashFiles('nextflow.config') }}
restore-keys: |
${{ runner.os }}-nextflow-
- if: ${{ steps.nfcore_cache.outputs.cache-hit != 'true' }}
name: Install Nextflow
- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
with:
version: "latest-everything"
Expand Down

0 comments on commit 15129f9

Please sign in to comment.