diff --git a/.github/workflows/test-sundials.yml b/.github/workflows/test-sundials.yml index aa0b8ad..0a1982d 100644 --- a/.github/workflows/test-sundials.yml +++ b/.github/workflows/test-sundials.yml @@ -127,3 +127,71 @@ jobs: tox env: TOXENV: ${{ matrix.tox-env }} + + tests-win-mac: + name: tests (${{ matrix.python-version }}, ${{matrix.sundials-version}}, ${{ matrix.os }}, double, 32) + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [windows-latest, macos-latest, macos-13] + python-version: ["3.9", "3.13"] + sundials-version: ["7.1.1"] + include: + - python-version: "3.9" + tox-env: py39 + - python-version: "3.13" + tox-env: py313 + + defaults: + run: + shell: bash -l {0} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python and SUNDIALS + uses: mamba-org/setup-micromamba@v2 + with: + environment-name: odes + create-args: >- + python=${{ matrix.python-version }} + sundials=${{ matrix.sundials-version }} + condarc: | + channels: + - conda-forge + + - name: Verify environment + run: | + micromamba info + micromamba list + + - name: Set SUNDIALS path + run: | + if [[ "$RUNNER_OS" == "Windows" ]]; then + SUNDIALS_INST="$CONDA_PREFIX\Library" + else + SUNDIALS_INST="$CONDA_PREFIX" + fi + + echo "SUNDIALS_INST is set to: $SUNDIALS_INST" + echo "SUNDIALS_INST=$SUNDIALS_INST" >> $GITHUB_ENV + + - name: Install python dependencies + run: | + python -m pip install --upgrade pip + python -m pip install --upgrade setuptools + python -m pip install --upgrade tox + + - name: List info + run: | + micromamba info + micromamba list + + - name: Run tests + working-directory: packages/scikits-odes-sundials + run: tox + env: + TOXENV: ${{ matrix.tox-env }} diff --git a/packages/scikits-odes-sundials/tox.ini b/packages/scikits-odes-sundials/tox.ini index 22853a3..d924136 100644 --- a/packages/scikits-odes-sundials/tox.ini +++ b/packages/scikits-odes-sundials/tox.ini @@ -4,6 +4,7 @@ setenv = LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 [testenv] passenv= + SUNDIALS_INST SUNDIALS_DIR SUNDIALS_LIBDIR SUNDIALS_INCLUDEDIR