Skip to content

Commit 2891ddd

Browse files
committed
Fix issue with SUNDIALS_INST path variables
1 parent ed3706c commit 2891ddd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/test-sundials.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,14 @@ jobs:
129129
TOXENV: ${{ matrix.tox-env }}
130130

131131
test-windows:
132-
name: (Test ${{ matrix.python-version }}, ${{ matrix.os }})
132+
name: tests (${{ matrix.python-version }}, ${{matrix.sundials-version}}, ${{ matrix.os }}, double, 32)
133133
runs-on: ${{ matrix.os }}
134134

135135
strategy:
136136
matrix:
137137
os: [macos-latest, windows-latest] # set more OS here, if desired
138138
python-version: ["3.9", "3.13"] # set more python versions here, if desired
139+
sundials-version: ["7.1.1"] # set more SUNDIALS version here, if desired
139140

140141
defaults:
141142
run:
@@ -154,7 +155,7 @@ jobs:
154155
python-version: ${{ matrix.python-version }}
155156

156157
- name: Setup SUNDIALS
157-
run: conda install sundials=7.1.1 -c conda-forge # SUNDIALS version is set here
158+
run: conda install sundials=${{ matrix.sundials-version }} -c conda-forge
158159

159160
- name: Verify environment
160161
run: |
@@ -164,11 +165,14 @@ jobs:
164165
- name: Set SUNDIALS installation path
165166
run: |
166167
if [[ "$RUNNER_OS" == "Windows" ]]; then
167-
echo "SUNDIALS_INST=%CONDA_PREFIX%/Library" >> $GITHUB_ENV
168+
SUNDIALS_INST="$CONDA_PREFIX\Library"
168169
else
169-
echo "SUNDIALS_INST=$CONDA_PREFIX" >> $GITHUB_ENV
170+
SUNDIALS_INST="$CONDA_PREFIX"
170171
fi
171172
173+
echo "SUNDIALS_INST is set to: $SUNDIALS_INST"
174+
echo "SUNDIALS_INST=$SUNDIALS_INST" >> $GITHUB_ENV
175+
172176
- name: Install scikits-odes-sundials
173177
working-directory: packages/scikits-odes-sundials
174178
run: |

0 commit comments

Comments
 (0)