mirror of
https://github.com/nfstream/nfstream.git
synced 2026-05-22 03:03:29 +00:00
Improve caching for PyPy CI jobs.
This commit is contained in:
parent
cecaeb2b0f
commit
9e7b196355
1 changed files with 7 additions and 3 deletions
10
.github/workflows/build_and_publish.yml
vendored
10
.github/workflows/build_and_publish.yml
vendored
|
|
@ -26,15 +26,19 @@ jobs:
|
|||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Display Python version
|
||||
- name: Get pip cache path
|
||||
id: get-pip-path
|
||||
run: |
|
||||
python -c "import sys; print(sys.version)"
|
||||
id=$(echo ${{ env.pythonLocation }} | sed 's/\/bin//g')
|
||||
echo "::set-output name=id::$id"
|
||||
|
||||
- name: Pip cache
|
||||
uses: actions/cache@v2
|
||||
id: pip-cache
|
||||
with:
|
||||
path: ${{ env.pythonLocation }}
|
||||
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
|
||||
path: ${{ steps.get-pip-path.outputs.id }}
|
||||
key: ${{ steps.get-pip-path.outputs.id }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
|
||||
- name: Install ubuntu Prerequisites
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue