Skip to content

Commit

Permalink
Migrate to GitHub Actions (#562)
Browse files Browse the repository at this point in the history
This removes the Travis CI integration in favor of Github Actions.

Co-authored-by: Yukthi Suresh <yukthi94@gmail.com>
  • Loading branch information
jmuhlich and yukthi-suresh committed Aug 15, 2022
1 parent 5c6be87 commit 12e7916
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 33 deletions.
26 changes: 26 additions & 0 deletions .github/pysb-conda-env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: pysb
channels:
- conda-forge
dependencies:
- alubbock::bionetgen
- alubbock::atomizer
- alubbock::kappa
- numpy
- scipy
- sympy
- cython
- matplotlib
- networkx
- nose
- h5py
- pexpect
- pandas
- pydot
- coverage
- coveralls
- mock
- pip
- pip:
- libroadrunner
- python-libsbml
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: build
on: [push]

jobs:
build-linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.7", "3.8", "3.9", "3.10"]
exclude:
# Fails due to Atomizer linker/runtime issue
- os: windows-latest
python-version: 3.7
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
run: >
nosetests
build/lib/pysb
--with-coverage --cover-inclusive --cover-package=build/lib/pysb
-a '!gpu'
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

0 comments on commit 12e7916

Please sign in to comment.