-
-
Notifications
You must be signed in to change notification settings - Fork 555
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 Saswatsusmoy-#3441-Call-processed-variabl…
…es-with-custom-spatial-coordinates
- Loading branch information
Showing
15 changed files
with
148 additions
and
25 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 |
---|---|---|
|
@@ -46,9 +46,21 @@ jobs: | |
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
# Include macOS M1 runners | ||
include: | ||
- os: macos-14 | ||
python-version: "3.10" | ||
- os: macos-14 | ||
python-version: "3.11" | ||
- os: macos-14 | ||
python-version: "3.12" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check out PyBaMM repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
|
@@ -89,7 +101,9 @@ jobs: | |
|
||
- name: Upload coverage report | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11 | ||
uses: codecov/[email protected] | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Run integration tests | ||
run: python -m nox -s integration | ||
|
@@ -110,42 +124,54 @@ jobs: | |
if: matrix.os == 'ubuntu-latest' | ||
run: python -m nox -s scripts | ||
|
||
#M-series Mac Mini | ||
# M-series Mac Mini | ||
build-apple-mseries: | ||
if: github.repository_owner == 'pybamm-team' | ||
needs: style | ||
runs-on: [self-hosted, macOS, ARM64] | ||
env: | ||
GITHUB_PATH: ${PYENV_ROOT/bin:$PATH} | ||
LD_LIBRARY_PATH: $HOME/.local/lib | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install python & create virtualenv | ||
- name: Install Python & create virtualenv | ||
shell: bash | ||
run: | | ||
eval "$(pyenv init -)" | ||
pyenv install ${{ matrix.python-version }} -s | ||
pyenv virtualenv ${{ matrix.python-version }} pybamm-${{ matrix.python-version }} | ||
- name: Install dependencies & run unit tests for Windows and MacOS | ||
- name: Install build-time dependencies & run unit tests for M-series macOS runner | ||
shell: bash | ||
env: | ||
# Point scikits.odes to the correct SUNDIALS installation | ||
SUNDIALS_INST: $HOME/.local/lib | ||
# Homebrew environment variables | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
NONINTERACTIVE: 1 | ||
run: | | ||
eval "$(pyenv init -)" | ||
pyenv activate pybamm-${{ matrix.python-version }} | ||
python -m pip install --upgrade pip wheel setuptools nox | ||
python -m pip install --upgrade pip nox | ||
# Don't use Homebrew to install SUNDIALS because scikits.odes looks for | ||
# in Homebrew folders instead, which we don't want | ||
brew uninstall sundials --force | ||
pip cache remove scikits.odes | ||
python -m nox -s pybamm-requires -- --force | ||
python -m nox -s unit | ||
- name: Run integration tests for Windows and MacOS | ||
- name: Run integration tests for M-series macOS runner | ||
run: | | ||
eval "$(pyenv init -)" | ||
pyenv activate pybamm-${{ matrix.python-version }} | ||
python -m nox -s integration | ||
- name: Uninstall pyenv-virtualenv & python | ||
- name: Uninstall pyenv-virtualenv & Python | ||
if: always() | ||
shell: bash | ||
run: | | ||
|
@@ -159,8 +185,16 @@ jobs: | |
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
# Include macOS M1 runners | ||
include: | ||
- os: macos-14 | ||
python-version: "3.10" | ||
- os: macos-14 | ||
python-version: "3.11" | ||
- os: macos-14 | ||
python-version: "3.12" | ||
fail-fast: false | ||
name: Test pybamm_install_odes on ${{ matrix.os }} | ||
name: Test pybamm_install_odes (${{ matrix.os }} / Python ${{ matrix.python-version }}) | ||
|
||
steps: | ||
- name: Check out PyBaMM repository | ||
|
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 |
---|---|---|
|
@@ -43,6 +43,14 @@ jobs: | |
exclude: | ||
- os: ubuntu-latest | ||
python-version: "3.11" | ||
# Include macOS M1 runners | ||
include: | ||
- os: macos-14 | ||
python-version: "3.10" | ||
- os: macos-14 | ||
python-version: "3.11" | ||
- os: macos-14 | ||
python-version: "3.12" | ||
name: Unit tests (${{ matrix.os }} / Python ${{ matrix.python-version }}) | ||
|
||
steps: | ||
|
@@ -66,7 +74,7 @@ jobs: | |
sudo apt-get install libopenblas-dev texlive-latex-extra dvipng | ||
- name: Install macOS system dependencies | ||
if: matrix.os == 'macos-latest' | ||
if: matrix.os == 'macos-latest' || matrix.os == 'macos-14' | ||
env: | ||
# Homebrew environment variables | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
|
@@ -170,7 +178,9 @@ jobs: | |
run: python -m nox -s coverage | ||
|
||
- name: Upload coverage report | ||
uses: codecov/[email protected] | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
run_integration_tests: | ||
needs: style | ||
|
@@ -180,6 +190,14 @@ jobs: | |
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
# Include macOS M1 runners | ||
include: | ||
- os: macos-14 | ||
python-version: "3.10" | ||
- os: macos-14 | ||
python-version: "3.11" | ||
- os: macos-14 | ||
python-version: "3.12" | ||
name: Integration tests (${{ matrix.os }} / Python ${{ matrix.python-version }}) | ||
|
||
steps: | ||
|
@@ -203,7 +221,7 @@ jobs: | |
sudo apt-get install libopenblas-dev texlive-latex-extra dvipng | ||
- name: Install macOS system dependencies | ||
if: matrix.os == 'macos-latest' | ||
if: matrix.os == 'macos-latest' || matrix.os == 'macos-14' | ||
env: | ||
# Homebrew environment variables | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
|
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
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
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
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