Skip to content

Commit 55d71f3

Browse files
committed
try caching conda env instead
1 parent 7f5d77b commit 55d71f3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/io-test.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- uses: conda-incubator/setup-miniconda@v3
5050
with:
51-
activate-environment: neo-test-env
51+
activate-environment: neo-test-env-${{ matrix.python-version }}
5252
python-version: "${{ matrix.python-version }}"
5353

5454
- name: Get current dependencies hash
@@ -62,17 +62,13 @@ jobs:
6262
# * when package dependencies change
6363
id: cache-conda-env
6464
with:
65-
path: /usr/share/miniconda/envs/neo-test-env
65+
path: /usr/share/miniconda/envs/neo-test-env-${{ matrix.python-version }}
6666
key: ${{ runner.os }}-conda-env-${{ steps.dependencies.outputs.hash }}-${{ steps.date.outputs.date }}
6767
# restore-keys match any key that starts with the restore-key
6868
restore-keys: |
6969
${{ runner.os }}-conda-env-${{ steps.dependencies.outputs.hash }}-
7070
${{ runner.os }}-conda-env-
7171
72-
- name: Install Python Version
73-
run: |
74-
conda install --force-reinstall python=${{ matrix.python-version }} pip pytest
75-
7672
- name: Install testing dependencies
7773
# testing environment is only created from yml if no cache was found
7874
# restore-key hits should result in `cache-hit` == 'false'

0 commit comments

Comments
 (0)