Move pip cache into Python setup

This is now possible:
https://github.com/actions/setup-python#caching-packages-dependencies
pull/530/head
Nicco Kunzmann 2023-08-30 07:36:47 +01:00
rodzic b54e81b21f
commit bee11c8b38
2 zmienionych plików z 4 dodań i 10 usunięć

Wyświetl plik

@ -28,19 +28,12 @@ jobs:
runs-on: ubuntu-latest
name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config[0] }}
- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.config[0] }}-
${{ runner.os }}-pip-
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip

Wyświetl plik

@ -7,6 +7,7 @@ Changelog
Minor changes:
- No longer run the ``plone.app.event`` tests.
- Move pip caching into Python setup action.
Breaking changes: