Skip to content

Commit

Permalink
Rewrite github tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aseyboldt committed Apr 24, 2024
1 parent b52528b commit 1d01448
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 75 deletions.
50 changes: 27 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,43 @@ on:
- master

jobs:
test-on-linux:
run-tests:
runs-on: ${{ matrix.os }}
name: sunode - ${{ matrix.os }} - ${{ matrix.python-version }}
defaults:
run:
shell: bash -l {0}
strategy:
max-parallel: 6
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
with:
path: "sunode"
- name: Install miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: sunode-dev
miniforge-version: latest
python-version: ${{ matrix.python-version }}
- name: Install Dependences
run: |
conda install --yes conda-build boa conda-verify pytest pytest-cov hypothesis statsmodels pytensor c-compiler
- name: Build package
environment-name: sunode-dev
create-args: >-
python=${{ matrix.python-version }}
pytest
pytest-cov
hypothesis
statsmodels
pytensor
c-compiler
sundials<6.0
numba
sympy
typing_extensions
cffi
xarray
init-shell: bash powershell
- name: Get some debugging info
run: |
conda mambabuild --variants "{python: [${{ matrix.python-version }}]}" ./sunode/conda
- name: Install package
env
which gcc
- name: Install sunode
run: |
conda install --yes -c file:///${CONDA_PREFIX}/conda-bld/ sunode
pip install -e .
- name: Test with coverage
run: |
# conda activate doesn't seem to set paths to the conda prefix correctly
env LD_LIBRARY_PATH=${CONDA_PREFIX}/lib pytest --cov=sunode --cov-report xml --cov-report term-missing sunode
pytest --cov=sunode --cov-report xml --cov-report term-missing sunode
52 changes: 0 additions & 52 deletions conda/meta.yaml

This file was deleted.

0 comments on commit 1d01448

Please sign in to comment.