@@ -127,3 +127,71 @@ jobs:
127127 tox
128128 env :
129129 TOXENV : ${{ matrix.tox-env }}
130+
131+ tests-win-mac :
132+ name : tests (${{ matrix.python-version }}, ${{matrix.sundials-version}}, ${{ matrix.os }}, double, 32)
133+ runs-on : ${{ matrix.os }}
134+
135+ strategy :
136+ fail-fast : false
137+ matrix :
138+ os : [windows-latest, macos-latest, macos-13]
139+ python-version : ["3.9", "3.13"]
140+ sundials-version : ["7.1.1"]
141+ include :
142+ - python-version : " 3.9"
143+ tox-env : py39
144+ - python-version : " 3.13"
145+ tox-env : py313
146+
147+ defaults :
148+ run :
149+ shell : bash -l {0}
150+
151+ steps :
152+ - name : Checkout repository
153+ uses : actions/checkout@v4
154+
155+ - name : Setup Python and SUNDIALS
156+ uses : mamba-org/setup-micromamba@v2
157+ with :
158+ environment-name : odes
159+ create-args : >-
160+ python=${{ matrix.python-version }}
161+ sundials=${{ matrix.sundials-version }}
162+ condarc : |
163+ channels:
164+ - conda-forge
165+
166+ - name : Verify environment
167+ run : |
168+ micromamba info
169+ micromamba list
170+
171+ - name : Set SUNDIALS path
172+ run : |
173+ if [[ "$RUNNER_OS" == "Windows" ]]; then
174+ SUNDIALS_INST="$CONDA_PREFIX\Library"
175+ else
176+ SUNDIALS_INST="$CONDA_PREFIX"
177+ fi
178+
179+ echo "SUNDIALS_INST is set to: $SUNDIALS_INST"
180+ echo "SUNDIALS_INST=$SUNDIALS_INST" >> $GITHUB_ENV
181+
182+ - name : Install python dependencies
183+ run : |
184+ python -m pip install --upgrade pip
185+ python -m pip install --upgrade setuptools
186+ python -m pip install --upgrade tox
187+
188+ - name : List info
189+ run : |
190+ micromamba info
191+ micromamba list
192+
193+ - name : Run tests
194+ working-directory : packages/scikits-odes-sundials
195+ run : tox
196+ env :
197+ TOXENV : ${{ matrix.tox-env }}
0 commit comments