Commit 101110d
committed
ci: cache poetry venv keyed on lockfile and cython sources
Caches the poetry-managed .venv plus the built Cython artefacts
(src/zeroconf/**/*.so) for both the test matrix and benchmark
jobs, keyed on runner OS + image version + python version +
extension mode + hash of poetry.lock/pyproject.toml/build_ext.py
+ hash of src/zeroconf/**/*.py and **/*.pxd.
On a cache hit, the Install Dependencies step is skipped. Pure
Python and Cython source changes both invalidate the cache, so
tests never run against stale .so files.
POETRY_VIRTUALENVS_IN_PROJECT="true" is set at the job level so
poetry creates .venv inside the repo and the cache can target a
single path.1 parent d03ea36 commit 101110d
1 file changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
92 | 102 | | |
93 | | - | |
| 103 | + | |
94 | 104 | | |
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
98 | | - | |
| 108 | + | |
99 | 109 | | |
100 | 110 | | |
101 | 111 | | |
| |||
108 | 118 | | |
109 | 119 | | |
110 | 120 | | |
| 121 | + | |
| 122 | + | |
111 | 123 | | |
112 | 124 | | |
113 | 125 | | |
| |||
120 | 132 | | |
121 | 133 | | |
122 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
123 | 143 | | |
| 144 | + | |
124 | 145 | | |
125 | 146 | | |
126 | 147 | | |
| |||
0 commit comments