Skip to content

Commit

Permalink
Try caching in buster image.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanholek committed Aug 25, 2023
1 parent d55a740 commit 8502a21
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@ jobs:
- name: Check out project
uses: actions/checkout@v3

- name: Get pip cache info
id: pip-cache
run: |
chown root:root /github/home
echo dir=$(python -m pip cache dir) >> $GITHUB_OUTPUT
echo py=$(python -c'import sys; print("%d.%d" % sys.version_info[:2])') >> $GITHUB_OUTPUT
echo dir=$(python -m pip cache dir)
echo py=$(python -c'import sys; print("%d.%d" % sys.version_info[:2])')
- name: Cache pip
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-py${{ steps.pip-cache.outputs.py }}-${{ hashFiles('setup.cfg') }}
restore-keys: ${{ runner.os }}-pip-py${{ steps.pip-cache.outputs.py }}-

- name: Install dependencies
run: python -m pip install -e .

Expand Down

0 comments on commit 8502a21

Please sign in to comment.