Skip to content

Commit 39d4ab1

Browse files
committed
update env creation
1 parent bc12c35 commit 39d4ab1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ jobs:
127127
activate-environment: ${{steps.setup.outputs.env-name}}
128128
channel-priority: strict
129129
miniforge-version: latest
130+
python-version: ${{ matrix.python-version }}
130131
- name: Get Date
131132
id: get-date
132133
run: |
@@ -145,8 +146,13 @@ jobs:
145146
CACHE_NUMBER: 0
146147
id: cache-env
147148
- name: Install env
148-
run: conda env update --name=${{steps.setup.outputs.env-name}} --file=${{steps.setup.outputs.env-file}} python=${{matrix.python-version}} numpy=${{matrix.numpy-version}}
149149
if: steps.cache-env.outputs.cache-hit != 'true'
150+
run: |
151+
conda env update --name=${{steps.setup.outputs.env-name}} --file=${{steps.setup.outputs.env-file}}
152+
- name: Ensure Python/numpy version
153+
# if: steps.cache-env.outputs.cache-hit != 'true' # TODO: skip this step on cache hits once the caches are all updated
154+
run: |
155+
conda install python=${{matrix.python-version}} numpy=${{matrix.numpy-version}}
150156
- name: Install uncached pip dependencies
151157
run: |
152158
pip install --upgrade pip

0 commit comments

Comments
 (0)