Skip to content

Commit 5a2cab3

Browse files
authored
Merge pull request #242 from SigProfilerSuite/copilot/sub-pr-241
Fix cache ordering in CI workflow to avoid redundant downloads
2 parents 43fcdd4 + 72393c4 commit 5a2cab3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ jobs:
2727
run: |
2828
python -m pip install --upgrade pip setuptools packaging
2929
30-
- name: Download GRCh37.tar.gz if not present
31-
run: |
32-
if [ ! -f ./src/GRCh37.tar.gz ]; then
33-
wget --connect-timeout=10 --tries=20 ftp://alexandrovlab-ftp.ucsd.edu/pub/tools/SigProfilerMatrixGenerator/GRCh37.tar.gz -P ./src/
34-
fi
35-
3630
- name: Cache src directory
3731
uses: actions/cache@v4
3832
with:
@@ -41,6 +35,12 @@ jobs:
4135
restore-keys: |
4236
${{ runner.os }}-src-
4337
38+
- name: Download GRCh37.tar.gz if not present
39+
run: |
40+
if [ ! -f ./src/GRCh37.tar.gz ]; then
41+
wget --connect-timeout=10 --tries=20 ftp://alexandrovlab-ftp.ucsd.edu/pub/tools/SigProfilerMatrixGenerator/GRCh37.tar.gz -P ./src/
42+
fi
43+
4444
- name: Install package with tests
4545
run: |
4646
pip install .[tests]

0 commit comments

Comments
 (0)