Skip to content

Commit

Permalink
try new method
Browse files Browse the repository at this point in the history
  • Loading branch information
YigitElma committed Dec 12, 2024
1 parent 9770c24 commit 5fdf157
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/cache_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ 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
# 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
Expand All @@ -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
Expand Down

0 comments on commit 5fdf157

Please sign in to comment.