Skip to content

Commit 4bb6f00

Browse files
committed
gh-86275: Cache Hypothesis' db in CI
1 parent 1a9b3f0 commit 4bb6f00

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,14 @@ jobs:
368368
echo "HYPOVENV=${VENV_LOC}" >> $GITHUB_ENV
369369
echo "VENV_PYTHON=${VENV_PYTHON}" >> $GITHUB_ENV
370370
./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -U hypothesis
371+
- name: 'Restore Hypothesis database'
372+
id: cache-hypothesis-database
373+
uses: actions/cache@v3
374+
with:
375+
path: ./hypothesis
376+
key: hypothesis-database-${{ github.head_ref || github.run_id }}
377+
restore-keys:
378+
- hypothesis-database-
371379
- name: "Run tests"
372380
working-directory: ${{ env.CPYTHON_BUILDDIR }}
373381
run: |

0 commit comments

Comments
 (0)