Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setting python version for environment in CI #1620

Merged
merged 7 commits into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/io-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

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

- name: Get current dependencies hash
Expand All @@ -62,7 +62,7 @@ jobs:
# * when package dependencies change
id: cache-conda-env
with:
path: /usr/share/miniconda/envs/neo-test-env
path: /usr/share/miniconda/envs/neo-test-env-${{ matrix.python-version }}
key: ${{ runner.os }}-conda-env-${{ steps.dependencies.outputs.hash }}-${{ steps.date.outputs.date }}
# restore-keys match any key that starts with the restore-key
restore-keys: |
Expand All @@ -74,8 +74,7 @@ jobs:
# restore-key hits should result in `cache-hit` == 'false'
if: steps.cache-conda-env.outputs.cache-hit != 'true'
run: |
conda env update --name neo-test-env --file environment_testing.yml --prune
conda install python=${{ matrix.python-version }}
conda env update --name neo-test-env-${{ matrix.python-version }} --file environment_testing.yml --prune

- name: Configure git
run: |
Expand Down
Loading