Skip to content

Commit

Permalink
Merge pull request #1036 from pybamm-team/develop
Browse files Browse the repository at this point in the history
v0.2.2 into master
  • Loading branch information
rtimms authored Jun 1, 2020
2 parents 105714c + 3701026 commit eff587b
Show file tree
Hide file tree
Showing 594 changed files with 17,607 additions and 9,968 deletions.
15 changes: 0 additions & 15 deletions .appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exclude=
share,
pyvenv.cfg,
third-party,
sundials-5.0.0,
KLU_module_deps,
ignore=
# False positive for white space before ':' on list slice
# black should format these correctly
Expand Down
106 changes: 106 additions & 0 deletions .github/workflows/test_on_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: PyBaMM

on:
push:

pull_request:

# everyday at 3 am UTC
schedule:
- cron: '0 3 * * *'

jobs:

style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check style
uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Install package
run: |
python -m pip install --upgrade pip wheel setuptools
pip install -e .[dev]
- name: Check style
run: python -m flake8

build:
needs: style
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install Linux system dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt install gfortran gcc libopenblas-dev liblapack-dev graphviz
sudo apt install python${{ matrix.python-version }}.dev
- name: Install MacOS system dependencies
if: matrix.os == 'macos-latest'
run: |
brew update
brew install graphviz
brew install openblas
- name: Install Windows system dependencies
if: matrix.os == 'windows-latest'
run: choco install graphviz

- name: Install standard python dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
pip install -e .
- name: Install SUNDIALS and SuiteSparse
if: matrix.os != 'windows-latest'
run: |
pip install wget
git clone https://github.com/pybind/pybind11.git
python scripts/setup_KLU_module_build.py
export SUNDIALS_INST=$HOME/.local
pip install scikits.odes
pip install -e .
- name: Run unit tests Windows
if: matrix.os == 'windows-latest'
run: |
python run-tests.py --unit --folder all
- name: Run unit tests
if: matrix.os != 'windows-latest'
run: |
export LD_LIBRARY_PATH=$HOME/.local/lib:scikits.odes/sundials5/lib:$LD_LIBRARY_PATH
python run-tests.py --unit --folder all
- name: Install docs dependencies and run doctests
if: matrix.os != 'windows-latest'
run: |
export LD_LIBRARY_PATH=$HOME/.local/lib:scikits.odes/sundials5/lib:$LD_LIBRARY_PATH
pip install -e .[docs]
python run-tests.py --doctest
- name: Install dev dependencies and run example tests
if: matrix.os != 'windows-latest'
run: |
export LD_LIBRARY_PATH=$HOME/.local/lib:scikits.odes/sundials5/lib:$LD_LIBRARY_PATH
pip install -e .[dev]
python run-tests.py --examples
- name: Instal and run coverage
if: success() && (matrix.os == 'unbuntu-latest' && matrix.python-version == 3.7)
uses: codecov/codecov-action@v1
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,6 @@ cmake_install.cmake


third-party/pybind11

# Build dependencies/
KLU_module_deps
244 changes: 0 additions & 244 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit eff587b

Please sign in to comment.