Skip to content

Commit 9cafc52

Browse files
committed
Restore dependencies
1 parent e68e027 commit 9cafc52

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/hiperseis_main_ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@main
14+
- name: Restore dependencies
15+
id: cache-dependencies
16+
uses: actions/cache/restore@main
17+
with:
18+
path: |
19+
/home/runner
20+
/usr/share/miniconda/envs/hiperseis
21+
key: anaconda-1
1422
- name: Setting up environment
23+
if: steps.cache-dependencies.outputs.cache-hit != 'true'
1524
run: |
1625
wget -q https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh -O anaconda.sh
1726
bash anaconda.sh -b -p $HOME/anaconda3 > /dev/null 2>&1
@@ -21,6 +30,7 @@ jobs:
2130
sudo apt-get install openmpi-bin libopenmpi-dev
2231
sudo apt-get install libhdf5-dev
2332
- name: Install dependencies
33+
if: steps.cache-dependencies.outputs.cache-hit != 'true'
2434
run: |
2535
git submodule update --init --recursive
2636
source setup_scripts/conda_env_linux.sh hiperseis
@@ -33,14 +43,6 @@ jobs:
3343
path: |
3444
/home/runner/work/hiperseis
3545
/usr/share/miniconda/envs/hiperseis
36-
- name: Restore dependencies
37-
id: cache-dependencies
38-
uses: actions/cache/restore@main
39-
with:
40-
path: |
41-
/home/runner
42-
/usr/share/miniconda/envs/hiperseis
43-
key: anaconda
4446
- name: Running pytest
4547
shell: bash -el {0}
4648
run: |

0 commit comments

Comments
 (0)