Support for PyBaMM v26.7 #69
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: CI | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install ruff | |
| run: pip install ruff | |
| - name: ruff check | |
| run: ruff check src/ tests/ | |
| - name: ruff format | |
| run: ruff format --check src/ tests/ | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # All Python versions against the latest PyBaMM | |
| - {python-version: "3.10", pybamm-version: "26.7"} | |
| - {python-version: "3.11", pybamm-version: "26.7"} | |
| - {python-version: "3.12", pybamm-version: "26.7"} | |
| - {python-version: "3.13", pybamm-version: "26.7"} | |
| - {python-version: "3.14", pybamm-version: "26.7"} | |
| # Older PyBaMM versions against the latest Python they support | |
| - {python-version: "3.13", pybamm-version: "25.12"} | |
| - {python-version: "3.14", pybamm-version: "26.3"} | |
| - {python-version: "3.14", pybamm-version: "26.4"} | |
| - {python-version: "3.14", pybamm-version: "26.5"} | |
| - {python-version: "3.14", pybamm-version: "26.6"} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install | |
| run: pip install -e ".[test]" mypy "pybamm==${{ matrix.pybamm-version }}" | |
| - name: mypy | |
| run: mypy src/pathsim_batt | |
| - name: pytest | |
| run: pytest tests/ -v --tb=short |