Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a569559

Browse filesBrowse files
committed
ci: add caches for the wheel tests
Let's see how they perform now
1 parent 667a24a commit a569559
Copy full SHA for a569559

File tree

Expand file treeCollapse file tree

1 file changed

+46
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+46
-0
lines changed

‎.github/workflows/wheels.yml

Copy file name to clipboardExpand all lines: .github/workflows/wheels.yml
+46Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,22 @@ jobs:
125125
options: --privileged
126126

127127
steps:
128+
- name: Cache package managers
129+
uses: actions/cache@v4
130+
with:
131+
path: |
132+
/var/cache/apt
133+
/var/lib/apt
134+
/var/cache/dnf
135+
/var/cache/yum
136+
/var/cache/zypp
137+
/var/cache/apk
138+
~/.cache/pip
139+
key: ${{ matrix.os}}-${{ matrix.distro }}-${{ matrix.python_version }}-packages-${{ github.sha }}
140+
restore-keys: |
141+
${{ matrix.os}}-${{ matrix.distro }}-${{ matrix.python_version }}-packages-
142+
${{ matrix.os}}-${{ matrix.distro }}-packages-
143+
128144
- name: Install tar if needed
129145
if: contains(matrix.distro, 'opensuse')
130146
run: |
@@ -182,6 +198,18 @@ jobs:
182198
python${{ matrix.python_version }} -m ensurepip
183199
python${{ matrix.python_version }} -m pip install --upgrade pip wheel
184200
201+
- name: Cache pyenv
202+
if: contains(matrix.distro, 'archlinux')
203+
uses: actions/cache@v4
204+
with:
205+
path: |
206+
~/.pyenv
207+
~/.cache/pyenv
208+
key: ${{ matrix.os}}-${{ matrix.distro }}-pyenv-${{ matrix.python_version }}-${{ hashFiles('.python-version') }}
209+
restore-keys: |
210+
${{ matrix.os}}-${{ matrix.distro }}-pyenv-${{ matrix.python_version }}-
211+
${{ matrix.os}}-${{ matrix.distro }}-pyenv-
212+
185213
- name: Install Python and dependencies (Arch Linux)
186214
if: contains(matrix.distro, 'archlinux')
187215
run: |
@@ -219,6 +247,14 @@ jobs:
219247
echo "Available wheel files:"
220248
find ./wheels/ -name "*.whl" -type f
221249
250+
- name: Cache Python virtual environment
251+
uses: actions/cache@v4
252+
with:
253+
path: venv
254+
key: ${{ matrix.os}}-${{ matrix.distro }}-${{ matrix.python_version }}-venv-${{ hashFiles('./wheels/*.whl') }}
255+
restore-keys: |
256+
${{ matrix.os}}-${{ matrix.distro }}-${{ matrix.python_version }}-venv-
257+
222258
- name: Create a Virtual Environment
223259
shell: bash
224260
run: |
@@ -324,6 +360,16 @@ jobs:
324360
# Basic import test
325361
python3 -c "import libdebug; print('libdebug imported successfully on Alpine/musl')"
326362
363+
- name: Cache test dependencies
364+
uses: actions/cache@v4
365+
with:
366+
path: |
367+
venv/lib/python*/site-packages
368+
~/.cache/pip
369+
key: ${{ matrix.os}}-${{ matrix.distro }}-${{ matrix.python_version }}-test-deps-${{ github.sha }}
370+
restore-keys: |
371+
${{ matrix.os}}-${{ matrix.distro }}-${{ matrix.python_version }}-test-deps-
372+
327373
- name: Install Python build tools and test dependencies
328374
shell: bash
329375
run: |

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.