File tree Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 23
23
with :
24
24
submodules : ' recursive'
25
25
26
- - name : Set up Python ${{ matrix.python-version }}
27
- uses : actions/setup-python@v5
28
- with :
29
- python-version : ${{ matrix.python-version }}
30
-
31
- - name : Install dependencies (MacOs)
26
+ - name : Install dependencies (macOS)
32
27
env :
33
28
HOMEBREW_NO_INSTALL_CLEANUP : 1
34
29
HOMEBREW_NO_AUTO_UPDATE : 1
@@ -39,20 +34,25 @@ jobs:
39
34
brew install libomp
40
35
brew reinstall gcc
41
36
37
+ - name : Set up Python ${{ matrix.python-version }}
38
+ uses : actions/setup-python@v5
39
+ with :
40
+ python-version : ${{ matrix.python-version }}
41
+
42
42
- name : Build and test
43
43
run : |
44
44
cd ..
45
45
git clone https://github.com/pybamm-team/PyBaMM.git
46
46
# Install PyBaMM
47
47
cd PyBaMM
48
48
pip install -e ".[all,dev,jax]"
49
-
49
+
50
50
# Replace PyBaMM solvers
51
51
cd ../pybammsolvers
52
52
pip uninstall pybammsolvers --yes
53
53
python install_KLU_Sundials.py
54
54
pip install .
55
-
55
+
56
56
# Run pybamm tests
57
57
cd ../PyBaMM
58
58
pytest tests/unit
Original file line number Diff line number Diff line change 23
23
with :
24
24
submodules : ' recursive'
25
25
26
- - name : Set up Python ${{ matrix.python-version }}
27
- uses : actions/setup-python@v5
28
- with :
29
- python-version : ${{ matrix.python-version }}
30
-
31
26
- name : Install dependencies (Linux)
32
27
if : matrix.os == 'ubuntu-latest'
33
- run : |
34
- sudo apt-get install gfortran gcc libopenblas-dev
35
- pip install nox
28
+ run : sudo apt-get install gfortran gcc libopenblas-dev
36
29
37
30
- name : Install dependencies (MacOs)
38
31
if : matrix.os == 'macos-13' || matrix.os == 'macos-latest'
45
38
brew analytics off
46
39
brew install libomp
47
40
brew reinstall gcc
41
+
42
+ - name : Set up Python ${{ matrix.python-version }}
43
+ uses : actions/setup-python@v5
44
+ with :
45
+ python-version : ${{ matrix.python-version }}
46
+
47
+ - name : Install nox
48
+ run : |
48
49
pip install nox
49
50
50
51
- name : Build and test
You can’t perform that action at this time.
0 commit comments