diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 282acb2335..b5a733ea3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,10 +31,18 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3.8 - cache: 'pip' + + - name: cache virtualenv + id: cacheVenv + uses: actions/cache@v3 + with: + path: ./.venv/ + key: ${{ runner.os }}-${{ steps.setupPython.outputs.python-version }}-venv-${{ hashFiles('requirements.txt') }} + restore-keys: | + ${{ runner.os }}-${{ steps.setupPython.outputs.python-version }}-venv- - name: Install requirements - if: steps.setupPython.outputs.cache-hit != 'true' + if: steps.cacheVenv.outputs.cache-hit != 'true' run: pip install -e . -r requirements.txt - name: codespell