Skip to content

Commit af7c53c

Browse files
authored
Merge pull request #1620 from zm711/fix-ci-python-version
Fix setting python version for environment in CI
2 parents 5a0ace1 + 44ca3cc commit af7c53c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/io-test.yml

Lines changed: 3 additions & 4 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,7 +62,7 @@ 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: |
@@ -74,8 +74,7 @@ jobs:
7474
# restore-key hits should result in `cache-hit` == 'false'
7575
if: steps.cache-conda-env.outputs.cache-hit != 'true'
7676
run: |
77-
conda env update --name neo-test-env --file environment_testing.yml --prune
78-
conda install python=${{ matrix.python-version }}
77+
conda env update --name neo-test-env-${{ matrix.python-version }} --file environment_testing.yml --prune
7978
8079
- name: Configure git
8180
run: |

0 commit comments

Comments
 (0)