Skip to content

Commit

Permalink
Add frozen pip install to cache key.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanholek committed Aug 27, 2023
1 parent d55a740 commit bf68759
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,17 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-py${{ steps.pip-cache.outputs.py }}-${{ hashFiles('setup.cfg') }}
key: ${{ runner.os }}-pip-py${{ steps.pip-cache.outputs.py }}-${{ hashFiles('setup.cfg', 'pip.list') }}
restore-keys: ${{ runner.os }}-pip-py${{ steps.pip-cache.outputs.py }}-

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

- name: List installed packages
run: python -m pip list
run: |
python -m pip list
python -m pip list --format=freeze > pip.list
ls -alF
- name: Run tests
run: python -m unittest discover
Expand Down

0 comments on commit bf68759

Please sign in to comment.