From 5d9db95530d038ed519780c828599244a425a3c5 Mon Sep 17 00:00:00 2001 From: Nikita Grishko Date: Mon, 6 Jan 2020 14:58:08 +0300 Subject: [PATCH] [chore] update README.md (how to cache deps) --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 65f1cc3..e350839 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,24 @@ steps: - run: poetry --version ``` +### Cache dependencies to speed up workflows + +```yaml +steps: + - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 + with: + python-version: 3.8 + - uses: Gr1N/setup-poetry@v1 + - uses: actions/cache@v1 + with: + path: ~/.cache/pypoetry/virtualenvs + key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} + restore-keys: | + ${{ runner.os }}-poetry- + - run: poetry --version +``` + ## Contributing Feel free to submit any PR you want, they are always welcome.