forked from pybamm-team/PyBaMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into issue-2322-experiment-steps
- Loading branch information
Showing
7 changed files
with
234 additions
and
49 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
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 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 |
---|---|---|
|
@@ -93,16 +93,16 @@ jobs: | |
if: matrix.os == 'ubuntu-latest' | ||
run: tox -e pybamm-requires | ||
|
||
- name: Run unit tests for GNU/Linux with Python 3.8, 3.10, and 3.11 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version != 3.9 | ||
- name: Run unit tests for GNU/Linux with Python 3.8, 3.9, and 3.10 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version != 3.11 | ||
run: python -m tox -e unit | ||
|
||
- name: Run unit tests for GNU/Linux with Python 3.9 and generate coverage report | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 | ||
- name: Run unit tests for GNU/Linux with Python 3.11 and generate coverage report | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11 | ||
run: python -m tox -e coverage | ||
|
||
- name: Upload coverage report | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11 | ||
uses: codecov/[email protected] | ||
|
||
- name: Run integration tests for GNU/Linux | ||
|
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 |
---|---|---|
|
@@ -51,18 +51,35 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
# Install and cache apt packages | ||
- name: Install Linux system dependencies | ||
uses: awalsh128/[email protected] | ||
if: matrix.os == 'ubuntu-latest' | ||
with: | ||
packages: gfortran gcc graphviz | ||
execute_install_scripts: true | ||
|
||
# dot -c is for registering graphviz fonts and plugins | ||
- name: Install OpenBLAS and TexLive for Linux | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt install gfortran gcc libopenblas-dev graphviz | ||
sudo apt install texlive-full | ||
sudo dot -c | ||
sudo apt-get install libopenblas-dev texlive-latex-extra dvipng | ||
# Added fixes to homebrew installs: | ||
# rm -f /usr/local/bin/2to3 | ||
# (see https://github.com/actions/virtual-environments/issues/2322) | ||
- name: Install MacOS system dependencies | ||
if: matrix.os == 'macos-latest' | ||
env: | ||
# Homebrew environment variables | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
HOMEBREW_NO_ANALYTICS: 1 | ||
HOMEBREW_NO_GOOGLE_ANALYTICS: 1 | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
# Speed up CI | ||
NONINTERACTIVE: 1 | ||
run: | | ||
rm -f /usr/local/bin/2to3* | ||
rm -f /usr/local/bin/idle3* | ||
|
@@ -76,7 +93,7 @@ jobs: | |
if: matrix.os == 'windows-latest' | ||
run: choco install graphviz --version=2.38.0.20190211 | ||
|
||
- name: Install standard python dependencies | ||
- name: Install standard Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel setuptools | ||
python -m pip install "tox<4" | ||
|
@@ -85,16 +102,16 @@ jobs: | |
if: matrix.os == 'ubuntu-latest' | ||
run: tox -e pybamm-requires | ||
|
||
- name: Run unit tests for GNU/Linux with Python 3.8, 3.10, and 3.11 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version != 3.9 | ||
- name: Run unit tests for GNU/Linux with Python 3.8, 3.9, and 3.10 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version != 3.11 | ||
run: python -m tox -e unit | ||
|
||
- name: Run unit tests for GNU/Linux with Python 3.9 and generate coverage report | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 | ||
- name: Run unit tests for GNU/Linux with Python 3.11 and generate coverage report | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11 | ||
run: python -m tox -e coverage | ||
|
||
- name: Upload coverage report | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11 | ||
uses: codecov/[email protected] | ||
|
||
- name: Run integration tests for GNU/Linux with Python 3.11 | ||
|
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 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
Oops, something went wrong.