From 5edc80fb5bcf07b91a01da3c9e9d8b15884ce22a Mon Sep 17 00:00:00 2001 From: Samuel Letellier-Duchesne Date: Tue, 25 May 2021 09:44:45 -0400 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 3956d1a..684eccc 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -35,6 +35,18 @@ jobs: ENERGYPLUS_SHA: ${{ matrix.energyplus-sha }} ENERGYPLUS_INSTALL_VERSION: ${{ matrix.energyplus-install }} run: bash ./install_energyplus.sh + - name: Get pip cache dir + id: pip-cache + run: | + echo "::set-output name=dir::$(pip cache dir)" + - name: pip cache + id: cache + uses: actions/cache@v2 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - name: Install dependencies run: | python -m pip install --upgrade pip