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