mirror of
https://github.com/chenxiaolong/avbroot.git
synced 2026-07-03 14:05:11 +02:00
d53896f952
Now that the lookup-only option is available, we should use this instead
31 lines
762 B
YAML
31 lines
762 B
YAML
name: Preload tox cache
|
|
inputs:
|
|
cache-key-prefix:
|
|
description: 'Tox cache-key prefix'
|
|
required: true
|
|
python-version:
|
|
description: 'Python version'
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: actions/cache@v3
|
|
with:
|
|
key: ${{ inputs.cache-key-prefix }}${{ inputs.python-version }}
|
|
restore-keys: |
|
|
tox-
|
|
# Make sure any changes to path are also reflected in ci.yml setup
|
|
path: |
|
|
.tox/
|
|
~/.cache/pip
|
|
|
|
- uses: awalsh128/cache-apt-pkgs-action@v1
|
|
with:
|
|
packages: tox
|
|
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: |
|
|
${{ fromJson('{ "py39": "3.9", "py310": "3.10", "py311": "3.11" }')[inputs.python-version] }}
|