Skip to content

Commit

Permalink
Add caching for python dependencies in ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
henninggaertner committed Dec 14, 2023
1 parent 612b7e3 commit 4203d1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ jobs:
with:
python-version: "3.11"

- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/pip
!~/.cache/pip/log
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 4203d1f

Please sign in to comment.