From 3ff6d2ace016b3ae50b828cd76a840c655c0b1c6 Mon Sep 17 00:00:00 2001 From: Philip Cook Date: Mon, 1 Apr 2024 17:14:32 -0400 Subject: [PATCH] BUG: Cache key had wrong path to config scripts --- .github/workflows/ci-pytest.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-pytest.yml b/.github/workflows/ci-pytest.yml index de5a57ab..98541be9 100644 --- a/.github/workflows/ci-pytest.yml +++ b/.github/workflows/ci-pytest.yml @@ -48,10 +48,9 @@ jobs: with: path: ~/conda-env.tar.bz2 key: >- - ${{ runner.os }}-conda-${{ env.python_version }}- - ${{ hashFiles('antspy-pr/ants/environment.yml', 'antspy-pr/ants/requirements.txt', 'antspy-pr/ants/setup.py', - 'antspy-pr/ants/scripts/configure_ITK.sh', 'antspy-pr/ants/scripts/configure_ANTsPy.sh', - 'antspy-pr/ants/lib/*') }} + ${{ runner.os }}-conda-${{ env.python_version }}-${{ hashFiles('antspy-pr/ants/environment.yml', + 'antspy-pr/ants/requirements.txt', 'antspy-pr/ants/setup.py', 'antspy-pr/scripts/configure_ITK.sh', + 'antspy-pr/scripts/configure_ANTsPy.sh', 'antspy-pr/ants/lib/*') }} - name: Unpack cached environment if: steps.cache-env.outputs.cache-hit == 'true' @@ -79,10 +78,9 @@ jobs: with: path: ~/conda-env.tar.bz2 key: >- - ${{ runner.os }}-conda-${{ env.python_version }}- - ${{ hashFiles('antspy-pr/ants/environment.yml', 'antspy-pr/ants/requirements.txt', 'antspy-pr/ants/setup.py', - 'antspy-pr/ants/scripts/configure_ITK.sh', 'antspy-pr/ants/scripts/configure_ANTsPy.sh', - 'antspy-pr/ants/lib/*') }}) }} + ${{ runner.os }}-conda-${{ env.python_version }}-${{ hashFiles('antspy-pr/ants/environment.yml', + 'antspy-pr/ants/requirements.txt', 'antspy-pr/ants/setup.py', 'antspy-pr/scripts/configure_ITK.sh', + 'antspy-pr/scripts/configure_ANTsPy.sh', 'antspy-pr/ants/lib/*') }}) }} - name: Replace installed ANTsPy with PR code if: steps.cache-env.outputs.cache-hit == 'true'