Skip to content

Commit

Permalink
Cache dependencies in Github Action (#1027) (#1028)
Browse files Browse the repository at this point in the history
* Cache dependencies in Github Action. Fixes #1027

* Simplify key used for cache

Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>

---------

Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
  • Loading branch information
Baschdl and tomMoral authored Mar 19, 2024
1 parent 1b493b3 commit b3dbc94
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Cache dependency
id: cache-dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit b3dbc94

Please sign in to comment.