From a6f80899af180f9fc451fd07c4985401e7242d3f Mon Sep 17 00:00:00 2001 From: Simon Kamuk Christiansen Date: Mon, 3 Jun 2024 12:26:39 +0200 Subject: [PATCH] separated saving and restoring of cache --- .github/workflows/run_tests.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 33edb243..71bff3d3 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -28,13 +28,18 @@ jobs: python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi pip install torch-geometric>=2.5.2 + - name: Load cache data + uses: actions/cache/restore@v4 + with: + path: data + key: ${{ runner.os }}-meps-reduced-example-data-v0.1.0 + restore-keys: | + ${{ runner.os }}-meps-reduced-example-data-v0.1.0 - name: Test with pytest run: | pytest -v -s - - name: Cache data - uses: actions/cache@v4 + - name: Save cache data + uses: actions/cache/save@v4 with: path: data key: ${{ runner.os }}-meps-reduced-example-data-v0.1.0 - restore-keys: | - ${{ runner.os }}-meps-reduced-example-data-v0.1.0