Skip to content

Commit

Permalink
ci: use pip caching
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle committed Feb 2, 2024
1 parent c3ccba3 commit c75e9de
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/[email protected]
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }}-pip-${{ hashFiles('**/setup.py') }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install package
run: python -m pip install -e .[test] pytest-xdist # for multiprocessing

Expand Down

0 comments on commit c75e9de

Please sign in to comment.