Skip to content

Commit

Permalink
Add parallel job to test install_odes
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py committed Oct 13, 2023
1 parent a36ec4f commit dda612a
Showing 1 changed file with 44 additions and 6 deletions.
50 changes: 44 additions & 6 deletions .github/workflows/test_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ jobs:
pip install --upgrade pip wheel setuptools nox
pip install -e .[all,docs]
- name: Test pybamm_install_odes on MacOS (for only this PR)
if: matrix.os == 'macos-latest'
run: |
pip install wget
pybamm_install_odes
- name: Cache pybamm-requires nox environment for GNU/Linux
uses: actions/cache@v3
if: matrix.os == 'ubuntu-latest'
Expand Down Expand Up @@ -183,6 +177,50 @@ jobs:
- name: Upload coverage report
uses: codecov/[email protected]

test_install_odes:
needs: style
runs-on: macos-latest
strategy:
fail-fast: false
name: Test pybamm_install_odes on MacOS

steps:
- name: Check out PyBaMM repository
uses: actions/checkout@v4

- name: Install macOS system dependencies
if: matrix.os == 'macos-latest'
env:
# Homebrew environment variables
HOMEBREW_NO_INSTALL_CLEANUP: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_COLOR: 1
# Speed up CI
NONINTERACTIVE: 1
run: |
brew analytics off
brew update
brew install graphviz openblas
- name: Set up Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: setup.py

- name: Install PyBaMM dependencies
run: |
pip install --upgrade pip wheel setuptools nox
pip install -e .[all,docs]
- name: Test pybamm_install_odes on MacOS
if: matrix.os == 'macos-latest'
run: |
pip install wget
pybamm_install_odes
run_integration_tests:
needs: style
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit dda612a

Please sign in to comment.