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