Skip to content

Commit e3c5249

Browse files
committed
update env creation
1 parent bc12c35 commit e3c5249

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ jobs:
9595
conda-env: dev
9696
spec: main
9797
numpy-version: 2
98-
- python-version: '3.14'
99-
conda-env: dev
100-
spec: conda
101-
numpy-version: 2
10298

10399
steps:
104100
- uses: actions/checkout@v4
@@ -127,6 +123,7 @@ jobs:
127123
activate-environment: ${{steps.setup.outputs.env-name}}
128124
channel-priority: strict
129125
miniforge-version: latest
126+
python-version: ${{ matrix.python-version }}
130127
- name: Get Date
131128
id: get-date
132129
run: |
@@ -145,8 +142,13 @@ jobs:
145142
CACHE_NUMBER: 0
146143
id: cache-env
147144
- 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}}
149145
if: steps.cache-env.outputs.cache-hit != 'true'
146+
run: |
147+
conda env update --name=${{steps.setup.outputs.env-name}} --file=${{steps.setup.outputs.env-file}}
148+
- name: Ensure Python/numpy version
149+
# if: steps.cache-env.outputs.cache-hit != 'true' # TODO: skip this step on cache hits once the caches are all updated
150+
run: |
151+
conda install python=${{matrix.python-version}} numpy=${{matrix.numpy-version}}
150152
- name: Install uncached pip dependencies
151153
run: |
152154
pip install --upgrade pip

0 commit comments

Comments
 (0)