-
-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add parallel job to test
install_odes
- Loading branch information
Showing
1 changed file
with
44 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|
@@ -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 }} | ||
|