From 8e59c1b6f92e560fab4c653b33d6513cc9d0e735 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 14 Dec 2023 19:10:22 +0530 Subject: [PATCH] #3361 #3558 Improve caching and remove `examples/` --- .github/workflows/test_on_push.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test_on_push.yml b/.github/workflows/test_on_push.yml index 2f7f94c9bc..0ac4acf80b 100644 --- a/.github/workflows/test_on_push.yml +++ b/.github/workflows/test_on_push.yml @@ -104,8 +104,7 @@ jobs: # Headers and dynamic library files for SuiteSparse and SUNDIALS ${{ env.HOME }}/.local/lib/ ${{ env.HOME }}/.local/include/ - ${{ env.HOME }}/.local/examples/ - key: nox-${{ matrix.os }}-pybamm-requires-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/install_KLU_Sundials.py', '**/noxfile.py') }} + key: nox-${{ matrix.os }}-pybamm-requires-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/install_KLU_Sundials.py', '**/noxfile.py', '**/test_on_push.yml') }} - name: Install SuiteSparse and SUNDIALS on GNU/Linux and macOS if: matrix.os != 'windows-latest' @@ -160,8 +159,7 @@ jobs: # Headers and dynamic library files for SuiteSparse and SUNDIALS ${{ env.HOME }}/.local/lib/ ${{ env.HOME }}/.local/include/ - ${{ env.HOME }}/.local/examples/ - key: nox-${{ matrix.os }}-pybamm-requires-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/install_KLU_Sundials.py', '**/noxfile.py') }} + key: nox-${{ matrix.os }}-pybamm-requires-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/install_KLU_Sundials.py', '**/noxfile.py', '**/test_on_push.yml') }} - name: Install SuiteSparse and SUNDIALS on GNU/Linux run: python -m nox -s pybamm-requires @@ -242,8 +240,7 @@ jobs: # Headers and dynamic library files for SuiteSparse and SUNDIALS ${{ env.HOME }}/.local/lib/ ${{ env.HOME }}/.local/include/ - ${{ env.HOME }}/.local/examples/ - key: nox-${{ matrix.os }}-pybamm-requires-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/install_KLU_Sundials.py', '**/noxfile.py') }} + key: nox-${{ matrix.os }}-pybamm-requires-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/install_KLU_Sundials.py', '**/noxfile.py', '**/test_on_push.yml') }} - name: Install SuiteSparse and SUNDIALS on GNU/Linux and macOS if: matrix.os != 'windows-latest' @@ -341,8 +338,7 @@ jobs: # Headers and dynamic library files for SuiteSparse and SUNDIALS ${{ env.HOME }}/.local/lib/ ${{ env.HOME }}/.local/include/ - ${{ env.HOME }}/.local/examples/ - key: nox-${{ matrix.os }}-pybamm-requires-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/install_KLU_Sundials.py', '**/noxfile.py') }} + key: nox-${{ matrix.os }}-pybamm-requires-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/install_KLU_Sundials.py', '**/noxfile.py', '**/test_on_push.yml') }} - name: Install SuiteSparse and SUNDIALS on GNU/Linux run: python -m nox -s pybamm-requires @@ -396,8 +392,7 @@ jobs: # Headers and dynamic library files for SuiteSparse and SUNDIALS ${{ env.HOME }}/.local/lib/ ${{ env.HOME }}/.local/include/ - ${{ env.HOME }}/.local/examples/ - key: nox-${{ matrix.os }}-pybamm-requires-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/install_KLU_Sundials.py', '**/noxfile.py') }} + key: nox-${{ matrix.os }}-pybamm-requires-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/install_KLU_Sundials.py', '**/noxfile.py', '**/test_on_push.yml') }} - name: Install SuiteSparse and SUNDIALS on GNU/Linux run: python -m nox -s pybamm-requires