From de8a801a25f150ddfa77420b95549c6ced6ca324 Mon Sep 17 00:00:00 2001 From: gowridurgad Date: Mon, 20 May 2024 17:12:04 +0530 Subject: [PATCH] added action/cache --- docs/advanced-usage.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 843c7883..c05f9b97 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -313,9 +313,15 @@ steps: - uses: actions/setup-python@v5 with: python-version: '3.9' - cache: 'poetry' - name: Install poetry run: python -m pip install poetry +- name: Cache Poetry dependencies + uses: actions/cache@v3 + with: + path: ~/.cache/pypoetry + key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} + restore-keys: | + ${{ runner.os }}-poetry- - run: poetry install - run: poetry run pytest ```