Skip to content

Commit

Permalink
Merge pull request #346 from cschlaffner/github-ci-caching
Browse files Browse the repository at this point in the history
Add caching for python dependencies in ci.yml
  • Loading branch information
henninggaertner authored Dec 14, 2023
2 parents fac96fc + 4203d1f commit d3528bf
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 d3528bf

Please sign in to comment.