|
7 | 7 | - master
|
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - test-on-linux: |
| 10 | + run-tests: |
11 | 11 | runs-on: ${{ matrix.os }}
|
12 | 12 | name: sunode - ${{ matrix.os }} - ${{ matrix.python-version }}
|
13 |
| - defaults: |
14 |
| - run: |
15 |
| - shell: bash -l {0} |
16 | 13 | strategy:
|
17 | 14 | max-parallel: 6
|
18 | 15 | fail-fast: false
|
19 | 16 | matrix:
|
20 | 17 | os: ["ubuntu-latest", "windows-latest"]
|
21 |
| - python-version: ["3.9", "3.10", "3.11"] |
| 18 | + python-version: ["3.9", "3.10", "3.11", "3.12"] |
22 | 19 | steps:
|
23 |
| - - uses: actions/checkout@v3 |
24 |
| - with: |
25 |
| - path: "sunode" |
| 20 | + - uses: actions/checkout@v4 |
26 | 21 | - name: Install miniconda
|
27 |
| - uses: conda-incubator/setup-miniconda@v2 |
| 22 | + uses: mamba-org/setup-micromamba@v1 |
28 | 23 | with:
|
29 |
| - auto-update-conda: true |
30 |
| - activate-environment: sunode-dev |
31 |
| - miniforge-version: latest |
32 |
| - python-version: ${{ matrix.python-version }} |
33 |
| - - name: Install Dependences |
34 |
| - run: | |
35 |
| - conda install --yes conda-build boa conda-verify pytest pytest-cov hypothesis statsmodels pytensor c-compiler |
36 |
| - - name: Build package |
| 24 | + environment-name: sunode-dev |
| 25 | + create-args: >- |
| 26 | + python=${{ matrix.python-version }} |
| 27 | + pytest |
| 28 | + pytest-cov |
| 29 | + hypothesis |
| 30 | + statsmodels |
| 31 | + pytensor |
| 32 | + c-compiler |
| 33 | + sundials<6.0 |
| 34 | + numba |
| 35 | + sympy |
| 36 | + typing_extensions |
| 37 | + cffi |
| 38 | + xarray |
| 39 | + init-shell: >- |
| 40 | + bash |
| 41 | + powershell |
| 42 | + - name: Get some debugging info |
37 | 43 | run: |
|
38 |
| - conda mambabuild --variants "{python: [${{ matrix.python-version }}]}" ./sunode/conda |
39 |
| - - name: Install package |
| 44 | + env |
| 45 | + which gcc |
| 46 | + - name: Install sunode |
40 | 47 | run: |
|
41 |
| - conda install --yes -c file:///${CONDA_PREFIX}/conda-bld/ sunode |
| 48 | + pip install -e . |
42 | 49 | - name: Test with coverage
|
43 | 50 | run: |
|
44 |
| - # conda activate doesn't seem to set paths to the conda prefix correctly |
45 |
| - env LD_LIBRARY_PATH=${CONDA_PREFIX}/lib pytest --cov=sunode --cov-report xml --cov-report term-missing sunode |
| 51 | + pytest --cov=sunode --cov-report xml --cov-report term-missing sunode |
0 commit comments