diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index f10dc67a6..fb4bd7484 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -15,7 +15,7 @@ concurrency: cancel-in-progress: true jobs: - nightly_tests: + check_latest_dependencies: runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -39,6 +39,41 @@ jobs: python -m pip install "pybamm[all] @ git+https://github.com/pybamm-team/PyBaMM@develop" + - name: Run ${{ matrix.suite }} tests + run: | + if [[ "${{ matrix.suite }}" == "unit" ]]; then + python -m pytest --unit + elif [[ "${{ matrix.suite }}" == "integration" ]]; then + python -m pytest --integration + elif [[ "${{ matrix.suite }}" == "examples" ]]; then + python -m pytest --examples + elif [[ "${{ matrix.suite }}" == "notebooks" ]]; then + python -m pytest --notebooks --nbmake --nbmake-timeout=1000 examples/ + fi + + check_lowest_dependencies: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-14] + python-version: ["3.10"] + suite: ["unit", "integration", "examples", "notebooks"] + + name: Test-${{ matrix.os }}-py-${{ matrix.python-version }}-${{ matrix.suite }}) + + steps: + - uses: actions/checkout@v6 + - name: Set up Python ${{ matrix.python-version }} + uses: astral-sh/setup-uv@v7 + with: + python-version: ${{ matrix.python-version }} + activate-environment: "true" + - name: Install dependencies + run: | + uv pip install --resolution lowest-direct -e .[all,dev] + + - name: Run ${{ matrix.suite }} tests run: | if [[ "${{ matrix.suite }}" == "unit" ]]; then diff --git a/pyproject.toml b/pyproject.toml index ce74de0ef..bb9f63dbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ requires-python = ">=3.10, <3.13" dependencies = [ "pybamm>=25.12.0", "numpy", - "scipy>=1.3", + "scipy>=1.12.0", "pints>=0.5.1", "SALib>=1.5", ]