Merge branch 'TLeo_update-pinned_dev' of https://github.com/mleot/pyb… #9
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: pybamm_pnm | |
on: | |
push: | |
branches: | |
pull_request: | |
branches: | |
schedule: | |
- cron: '0 3 * * *' | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Lint with flake8 | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8 | |
flake8 | |
build: | |
needs: style | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install specific version of PyBaMM and liionpack | |
run: | | |
pip install wheel | |
python -m pip install git+https://github.com/pybamm-team/pybamm@develop | |
pybamm_install_jax | |
python -m pip install git+https://github.com/pybamm-team/liionpack@develop | |
- name: Install pybamm_pnm with dependencies | |
run: | | |
pip install wheel | |
pip install openpnm==2.8.2 | |
python -m pip install -e . | |
- name: Install latest sympy | |
run: | | |
python -m pip install sympy==1.10.1 | |
- name: Run tests and generate coverage report | |
run: | | |
python -m pip install coverage | |
coverage run -m unittest -v |