Drop pybind11 submodule and use it as a build-time dependency #166
Workflow file for this run
This file contains hidden or 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
name: Integration Tests | |
on: | |
pull_request: | |
branches: | |
- "main" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pybamm_tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest] | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
submodules: 'recursive' | |
- name: Install dependencies (macOS) | |
env: | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
HOMEBREW_NO_AUTO_UPDATE: 1 | |
HOMEBREW_NO_COLOR: 1 | |
NONINTERACTIVE: 1 | |
run: | | |
brew analytics off | |
brew install libomp | |
brew reinstall gcc | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Build and test | |
run: | | |
cd .. | |
git clone https://github.com/pybamm-team/PyBaMM.git | |
# Install PyBaMM | |
cd PyBaMM | |
pip install -e ".[all,dev,jax]" | |
# Replace PyBaMM solvers | |
cd ../pybammsolvers | |
pip uninstall pybammsolvers --yes | |
python install_KLU_Sundials.py | |
pip install . | |
# Run pybamm tests | |
cd ../PyBaMM | |
pytest tests/unit | |
pytest tests/integration |