Skip to content

Commit

Permalink
Move to using tox
Browse files Browse the repository at this point in the history
  • Loading branch information
c-randall committed Dec 31, 2024
1 parent ecb57b7 commit 8bda1c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/test-sundials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,13 @@ jobs:

strategy:
matrix:
os: [macos-latest, windows-latest] # set more OS here, if desired
python-version: ["3.9", "3.13"] # set more python versions here, if desired
sundials-version: ["7.1.1"] # set more SUNDIALS version here, if desired
os: [windows-latest, macos-latest, macos-13]
sundials-version: ["7.1.1"]
include:
- python-version: "3.9"
tox-env: py39
- python-version: "3.13"
tox-env: py313

defaults:
run:
Expand Down Expand Up @@ -173,19 +177,18 @@ jobs:
echo "SUNDIALS_INST is set to: $SUNDIALS_INST"
echo "SUNDIALS_INST=$SUNDIALS_INST" >> $GITHUB_ENV
- name: Install scikits-odes-sundials
working-directory: packages/scikits-odes-sundials
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install .
python -m pip install --upgrade tox
- name: List info
run: |
conda info
conda list
- name: Run tests
working-directory: packages/scikits-odes-sundials/src/scikits_odes_sundials
run: |
pip install pytest
pytest .
working-directory: packages/scikits-odes-sundials
run: tox
env:
TOXENV: ${{ matrix.tox-env }}
1 change: 1 addition & 0 deletions packages/scikits-odes-sundials/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bda1c5

Please sign in to comment.