Skip to content

Commit

Permalink
Merge pull request #168 from aragilar/get-working-on-py12
Browse files Browse the repository at this point in the history
Get working on python 3.12
  • Loading branch information
aragilar authored Jul 10, 2024
2 parents 57466a9 + 91a1a57 commit 1474965
Show file tree
Hide file tree
Showing 130 changed files with 10,726 additions and 3,058 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/test-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Test scikits-odes-core

on: [push, pull_request]

jobs:
tests:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
#- python-version: "3.7"
# tox-env: py37
#- python-version: "3.8"
# tox-env: py38
#- python-version: "3.9"
# tox-env: py39
#- python-version: "3.10"
# tox-env: py310
#- python-version: "3.11"
# tox-env: py311
#- python-version: "3.12"
# tox-env: py312
- python-version: "3.11"
tox-env: check-manifest
#- python-version: "3.11"
# tox-env: checkreadme

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-1
restore-keys: |
${{ runner.os }}-pip-
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: Run tests
run: |
cd packages/scikits-odes-core && tox
env:
TOXENV: ${{ matrix.tox-env }}
59 changes: 59 additions & 0 deletions .github/workflows/test-daepack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Test scikits-odes-daepack

on: [push, pull_request]

jobs:
tests:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.7"
tox-env: py37
- python-version: "3.8"
tox-env: py38
- python-version: "3.9"
tox-env: py39
- python-version: "3.10"
tox-env: py310
- python-version: "3.11"
tox-env: py311
- python-version: "3.12"
tox-env: py312

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install build dependencies
run: sudo apt-get install gfortran

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-1
restore-keys: |
${{ runner.os }}-pip-
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: Run tests
run: |
cd packages/scikits-odes-daepack && tox
env:
TOXENV: ${{ matrix.tox-env }}
121 changes: 121 additions & 0 deletions .github/workflows/test-namespace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: Test scikits-odes

on: [push, pull_request]

jobs:
tests:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
#- python-version: "3.7"
# sundials-version: "6.5.0"
# tox-env: py37
# sundials-precision: double
# sundials-index-size: 64
- python-version: "3.8"
sundials-version: "6.5.0"
tox-env: py38
sundials-precision: double
sundials-index-size: 64
- python-version: "3.9"
sundials-version: "6.5.0"
tox-env: py39
sundials-precision: double
sundials-index-size: 64
- python-version: "3.10"
sundials-version: "6.5.0"
tox-env: py310
sundials-precision: double
sundials-index-size: 64
- python-version: "3.11"
sundials-version: "6.5.0"
tox-env: py311
sundials-precision: double
sundials-index-size: 64
- python-version: "3.12"
sundials-version: "6.5.0"
tox-env: py312
sundials-precision: double
sundials-index-size: 64
- python-version: "3.11"
sundials-version: "6.5.0"
tox-env: check-manifest
sundials-precision: double
sundials-index-size: 64
#- python-version: "3.11"
# sundials-version: "6.5.0"
# tox-env: checkreadme
# sundials-precision: double
# sundials-index-size: 64
- python-version: "3.11"
sundials-version: "6.5.0"
tox-env: py311
sundials-precision: double
sundials-index-size: 32
#- python-version: "3.11"
# sundials-version: "6.5.0"
# tox-env: py311
# sundials-precision: single
# sundials-index-size: 64
- python-version: "3.11"
sundials-version: "6.5.0"
tox-env: py311
sundials-precision: extended
sundials-index-size: 64

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install build dependencies
run: sudo apt-get install gfortran liblapack-dev

- name: Sundials cache
uses: actions/cache@v2
with:
path: ~/sundials
key: ${{ runner.os }}-sundials-${{ matrix.sundials-version }}
restore-keys: |
${{ runner.os }}-sundials-
- name: Install sundials
run: |
source ci_support/ensure_sundials_installed.sh &&
printf "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH\n export LIBRARY_PATH=$LIBRARY_PATH\n export CPATH=$CPATH" > sundials_env.sh
env:
SUNDIALS_VERSION: ${{ matrix.sundials-version }}
SUNDIALS_PRECISION: ${{ matrix.sundials-precision }}
SUNDIALS_INDEX_SIZE: ${{ matrix.sundials-index-size }}

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-1
restore-keys: |
${{ runner.os }}-pip-
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: Run tests
run: |
cat sundials_env.sh
source sundials_env.sh &&
env &&
cd packages/scikits-odes &&
tox
env:
TOXENV: ${{ matrix.tox-env }}
126 changes: 126 additions & 0 deletions .github/workflows/test-overall.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
name: Python package

on: [push, pull_request]

jobs:
tests:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
#- python-version: "3.7"
# sundials-version: "6.5.0"
# tox-env: py37-test
# sundials-precision: double
# sundials-index-size: 64
- python-version: "3.8"
sundials-version: "6.5.0"
tox-env: py38-test
sundials-precision: double
sundials-index-size: 64
- python-version: "3.9"
sundials-version: "6.5.0"
tox-env: py39-test
sundials-precision: double
sundials-index-size: 64
- python-version: "3.10"
sundials-version: "6.5.0"
tox-env: py310-test
sundials-precision: double
sundials-index-size: 64
- python-version: "3.11"
sundials-version: "6.5.0"
tox-env: py311-test
sundials-precision: double
sundials-index-size: 64
- python-version: "3.12"
sundials-version: "6.5.0"
tox-env: py312-test
sundials-precision: double
sundials-index-size: 64
- python-version: "3.11"
sundials-version: "6.5.0"
tox-env: doctr
sundials-precision: double
sundials-index-size: 64
- python-version: "3.11"
sundials-version: "6.5.0"
tox-env: docs
sundials-precision: double
sundials-index-size: 64
- python-version: "3.11"
sundials-version: "6.5.0"
tox-env: py311-test
sundials-precision: double
sundials-index-size: 32
#- python-version: "3.11"
# sundials-version: "6.5.0"
# tox-env: py311-test
# sundials-precision: single
# sundials-index-size: 64
- python-version: "3.11"
sundials-version: "6.5.0"
tox-env: py311-test
sundials-precision: extended
sundials-index-size: 64
#- python-version: "3.12"
# sundials-version: "6.5.0"
# tox-env: py312-notebooks
# sundials-precision: double
# sundials-index-size: 64

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install build dependencies
run: sudo apt-get install gfortran liblapack-dev

- name: Sundials cache
uses: actions/cache@v2
with:
path: ~/sundials
key: ${{ runner.os }}-sundials-${{ matrix.sundials-version }}
restore-keys: |
${{ runner.os }}-sundials-
- name: Install sundials
run: |
source ci_support/ensure_sundials_installed.sh &&
printf "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH\n export LIBRARY_PATH=$LIBRARY_PATH\n export CPATH=$CPATH" > sundials_env.sh
env:
SUNDIALS_VERSION: ${{ matrix.sundials-version }}
SUNDIALS_PRECISION: ${{ matrix.sundials-precision }}
SUNDIALS_INDEX_SIZE: ${{ matrix.sundials-index-size }}

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-1
restore-keys: |
${{ runner.os }}-pip-
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install "setuptools<=64.0.0"
python -m pip install --upgrade tox
- name: Run tests
run: |
cat sundials_env.sh
source sundials_env.sh &&
env &&
tox
env:
TOXENV: ${{ matrix.tox-env }}
Loading

0 comments on commit 1474965

Please sign in to comment.