Rewrite github tests #280
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
run-tests: | |
runs-on: ${{ matrix.os }} | |
name: sunode - ${{ matrix.os }} - ${{ matrix.python-version }} | |
strategy: | |
max-parallel: 6 | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "windows-latest"] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install miniconda | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
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: | | |
env | |
which gcc | |
- name: Install sunode | |
run: | | |
pip install -e . | |
- name: Test with coverage | |
run: | | |
pytest --cov=sunode --cov-report xml --cov-report term-missing sunode |