ci: fix python packages caching (#1893)
This commit is contained in:
parent
b10696265f
commit
50877a033b
|
@ -57,7 +57,9 @@ jobs:
|
|||
- focal
|
||||
- jammy
|
||||
|
||||
container: ghcr.io/libretime/libretime-dev:${{ matrix.release }}
|
||||
container:
|
||||
image: ghcr.io/libretime/libretime-dev:${{ matrix.release }}
|
||||
options: --user 1001
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
@ -68,9 +70,9 @@ jobs:
|
|||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ inputs.context }}-${{ hashFiles(format('{0}/{1}', inputs.context, '**/setup.py')) }}
|
||||
key: ${{ matrix.release }}-pip-${{ inputs.context }}-${{ hashFiles(format('{0}/{1}', inputs.context, '**/setup.py')) }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-${{ inputs.context }}
|
||||
${{ matrix.release }}-pip-${{ inputs.context }}
|
||||
|
||||
- name: Test
|
||||
run: make test
|
||||
|
|
|
@ -46,7 +46,9 @@ jobs:
|
|||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
|
||||
container: ghcr.io/libretime/libretime-dev:${{ matrix.release }}
|
||||
container:
|
||||
image: ghcr.io/libretime/libretime-dev:${{ matrix.release }}
|
||||
options: --user 1001
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
@ -59,9 +61,9 @@ jobs:
|
|||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-api-${{ hashFiles('api/**/setup.py') }}
|
||||
key: ${{ matrix.release }}-pip-api-${{ hashFiles('api/**/setup.py') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-api
|
||||
${{ matrix.release }}-pip-api
|
||||
|
||||
- name: Test
|
||||
run: make test
|
||||
|
|
Loading…
Reference in New Issue