Skip to content

Commit ea608d8

Browse files
authored
Merge pull request #197 from c-randall/win-ci-tests
Add Windows/MacOS to test-sundials CI
2 parents 27f9a83 + 755b666 commit ea608d8

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

.github/workflows/test-sundials.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 }}

packages/scikits-odes-sundials/tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ setenv = LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
44

55
[testenv]
66
passenv=
7+
SUNDIALS_INST
78
SUNDIALS_DIR
89
SUNDIALS_LIBDIR
910
SUNDIALS_INCLUDEDIR

0 commit comments

Comments
 (0)