Skip to content

Commit

Permalink
🧪 Plug a reusable action for cache mgmt
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Feb 17, 2025
1 parent 371bcc3 commit 9d6b7ba
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 122 deletions.
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

0 comments on commit 9d6b7ba

Please sign in to comment.