Skip to content

Commit 1f7b19f

Browse files
committed
Rewrite github tests
1 parent b52528b commit 1f7b19f

File tree

2 files changed

+28
-74
lines changed

2 files changed

+28
-74
lines changed

.github/workflows/main.yml

+28-22
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,45 @@ on:
77
- master
88

99
jobs:
10-
test-on-linux:
10+
run-tests:
1111
runs-on: ${{ matrix.os }}
1212
name: sunode - ${{ matrix.os }} - ${{ matrix.python-version }}
13-
defaults:
14-
run:
15-
shell: bash -l {0}
1613
strategy:
1714
max-parallel: 6
1815
fail-fast: false
1916
matrix:
2017
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"]
2219
steps:
23-
- uses: actions/checkout@v3
24-
with:
25-
path: "sunode"
20+
- uses: actions/checkout@v4
2621
- name: Install miniconda
27-
uses: conda-incubator/setup-miniconda@v2
22+
uses: mamba-org/setup-micromamba@v1
2823
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
3743
run: |
38-
conda mambabuild --variants "{python: [${{ matrix.python-version }}]}" ./sunode/conda
39-
- name: Install package
44+
env
45+
which gcc
46+
- name: Install sunode
4047
run: |
41-
conda install --yes -c file:///${CONDA_PREFIX}/conda-bld/ sunode
48+
pip install -e .
4249
- name: Test with coverage
4350
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

conda/meta.yaml

-52
This file was deleted.

0 commit comments

Comments
 (0)