-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (50 loc) · 1.68 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
name: Continuous Integration
on: [push, pull_request]
jobs:
tests_coverage:
name: Tests & Coverage
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: .github/pysb-conda-env.yml
activate-environment: pysb
- name: Install StochKit (except on Windows)
if: matrix.os != 'windows-latest'
run: conda install -y -c alubbock stochkit
- name: Install StochKit Lite (Windows only)
if: matrix.os == 'windows-latest'
run: conda install -y -c alubbock -c conda-forge stochkit-lite
- name: Fix gfortran DLL linker error on Windows/Python 3.8
if: matrix.os == 'windows-latest' && matrix.python-version == '3.8'
run: pip install --upgrade --force-reinstall scipy
- name: Conda environment info
run: |
conda info
conda list
- name: Build PySB
run: python setup.py build --build-lib=build/lib
- name: Run nosetests
env:
PYTHONFAULTHANDLER: 1
run: >
nosetests
build/lib/pysb
--with-coverage --cover-inclusive --cover-package=build/lib/pysb
--cover-xml
-a '!gpu'
- uses: codecov/codecov-action@v3
with:
verbose: true
flags: os-${{ matrix.os }},python-${{ matrix.python-version }}