Skip to content

How much of the test suite passes on PyBaMM wheels? #1

How much of the test suite passes on PyBaMM wheels?

How much of the test suite passes on PyBaMM wheels? #1

Workflow file for this run

name: How much does the test suite pass with PyBaMM wheels?
on:
workflow_dispatch:
pull_request:
env:
FORCE_COLOR: 3
jobs:
run_unit_tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11"]
pybamm-version: ["23.9", "24.1"]
name: Run test suite / ${{ matrix.os }} / py-${{ matrix.python-version }}
steps:
- name: Set up Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install PyBaMM wheels
run: python -m pip install "pybamm[all,dev]==${{ matrix.pybamm-version }}"
- name: Checkout tests from PyBaMM repository
uses: actions/checkout@v4
with:
repository: pybamm-team/PyBaMM
ref: '${{ matrix.pybamm-version }}'
sparse-checkout: |
tests
sparse-checkout-cone-mode: true
- name: Run unit tests and integration tests with unittest
run: python -m unittest discover -s tests --verbose