From 5fdf157ef450cee92f32e6f9b7ac0831c5e4582d Mon Sep 17 00:00:00 2001 From: YigitElma Date: Thu, 12 Dec 2024 10:58:15 -0500 Subject: [PATCH] try new method --- .github/workflows/cache_dependencies.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cache_dependencies.yml b/.github/workflows/cache_dependencies.yml index e61b8c536..5b0cd7b8d 100644 --- a/.github/workflows/cache_dependencies.yml +++ b/.github/workflows/cache_dependencies.yml @@ -37,8 +37,8 @@ jobs: run: | echo "Current Cached files list" gh cache list - echo "Deleting cached files with pattern: ${{ runner.os }}-venv-${python_version}-" - for cache_key in $(gh cache list --json key -q ".[] | select(.key | startswith(\"${{ runner.os }}-venv-${python_version}-\")) | .key"); do + echo "Deleting cached files with pattern: ${{ runner.os }}-venv-$python_version-" + for cache_key in $(gh cache list --json key -q ".[] | select(.key | startswith(\"${{ runner.os }}-venv-$python_version-\")) | .key"); do echo "Deleting cache with key: $cache_key" gh cache delete "$cache_key" done @@ -46,8 +46,8 @@ jobs: # Update the matplotlib version if needed later - name: Set up virtual environment run: | - python -m venv .venv-${python_version} - source .venv-${python_version}/bin/activate + python -m venv .venv-$python_version + source .venv-$python_version/bin/activate python -m pip install --upgrade pip pip install -r devtools/dev-requirements.txt pip install matplotlib==3.9.2 @@ -56,12 +56,12 @@ jobs: id: cache-env uses: actions/cache@v4 with: - path: .venv-${python_version} - key: ${{ runner.os }}-venv-${python_version}-${{ hashFiles('devtools/dev-requirements.txt', 'requirements.txt') }} + path: .venv-$python_version + key: ${{ runner.os }}-venv-$python_version-${{ hashFiles('devtools/dev-requirements.txt', 'requirements.txt') }} - name: Verify virtual environment activation run: | - source .venv-${python_version}/bin/activate + source .venv-$python_version/bin/activate which python python --version pip --version