Skip to content

Commit

Permalink
Use new cache syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
yaugenst committed Nov 19, 2023
1 parent a19c33f commit 98a925d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@ jobs:
id: pip-cache
run: |
if [[ $RUNNER_OS == 'Windows' ]]; then
echo "::set-output name=dir::C:\\Users\\runneradmin\\AppData\\Local\\pip\\Cache"
echo "dir=C:\\Users\\runneradmin\\AppData\\Local\\pip\\Cache" >> $GITHUB_OUTPUT
else
echo "::set-output name=dir::~/.cache/pip"
echo "dir=~/.cache/pip" >> $GITHUB_OUTPUT
fi
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
restore-keys: ${{ runner.os }}-pip-

- name: Install dependencies
run: |
Expand Down

0 comments on commit 98a925d

Please sign in to comment.