Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧪 Plug a reusable action for cache mgmt #633

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 0 additions & 114 deletions .github/actions/cache-pip-deps/action.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ jobs:
id: calc-cache-key-files
uses: ./.github/actions/cache-keys
- name: Set up pip cache
uses: ./.github/actions/cache-pip-deps
uses: re-actors/cache-python-deps@release/v1
with:
cache-key-for-dep-files: >-
cache-key-for-dependency-files: >-
${{ steps.calc-cache-key-files.outputs.cache-key-for-dep-files }}
- name: Install core libraries for build
run: python -Im pip install build
Expand Down Expand Up @@ -233,9 +233,9 @@ jobs:
id: calc-cache-key-files
uses: ./.github/actions/cache-keys
- name: Set up pip cache
uses: ./.github/actions/cache-pip-deps
uses: re-actors/cache-python-deps@release/v1
with:
cache-key-for-dep-files: >-
cache-key-for-dependency-files: >-
${{ steps.calc-cache-key-files.outputs.cache-key-for-dep-files }}
- name: Install dependencies
uses: py-actions/py-dependency-install@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
id: calc-cache-key-files
uses: ./.github/actions/cache-keys
- name: Set up pip cache
uses: ./.github/actions/cache-pip-deps
uses: re-actors/cache-python-deps@release/v1
with:
cache-key-for-dep-files: >-
cache-key-for-dependency-files: >-
${{ steps.calc-cache-key-files.outputs.cache-key-for-dep-files }}
- name: Cache pre-commit.com virtualenvs
uses: actions/cache@v4
Expand Down
2 changes: 0 additions & 2 deletions CHANGES/622.contrib.rst

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGES/633.contrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
GitHub Actions CI/CD is now configured to manage caching pip-ecosystem
dependencies using `re-actors/cache-python-deps`_ -- an action by
:user:`webknjaz` that takes into account ABI stability and the exact
version of Python runtime.

.. _`re-actors/cache-python-deps`:
https://github.com/marketplace/actions/cache-python-deps
Loading