From 8973e66ec52aa4036d6420a365210a2fcb558944 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Mon, 18 Jan 2021 14:43:06 +0800 Subject: [PATCH] :construction_worker: update ci add cache --- .github/workflows/build_docs.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 8f4b0dc2..8fdc2d9a 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -19,10 +19,17 @@ jobs: python-version: 3.8 architecture: "x64" - - name: Install Dependences + - uses: Gr1N/setup-poetry@v4 + + - uses: actions/cache@v1 + with: + path: ~/.cache/pypoetry/virtualenvs + key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} + restore-keys: | + ${{ runner.os }}-poetry- + + - name: Set up dependencies run: | - python -m pip install --upgrade pip - pip install poetry poetry install - name: Build Doc