Skip to content

Commit a2b47c7

Browse files
CI: cache tox environments
1 parent e78c299 commit a2b47c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,15 @@ jobs:
179179
${{ runner.os }}-pip-
180180
${{ runner.os }}-
181181
182+
- name: Cache tox environments
183+
uses: actions/cache@v4
184+
with:
185+
path: .tox
186+
key: ${{ runner.os }}-tox-${{ matrix.toxenv }}-${{ hashFiles('requirements.d/development.txt', 'pyproject.toml') }}
187+
restore-keys: |
188+
${{ runner.os }}-tox-${{ matrix.toxenv }}-
189+
${{ runner.os }}-tox-
190+
182191
- name: Install Linux packages
183192
if: ${{ runner.os == 'Linux' }}
184193
run: |

0 commit comments

Comments
 (0)