diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 87ced74..d66144a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -15,24 +15,17 @@ jobs: with: python-version: '3.x' - - name: Cache Dependencies - id: myCacheStep - uses: actions/cache@v2 - env: - cache-name: cache-pip-modules + - uses: actions/cache@v1 with: - path: ~/.pip - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/dev-requirements.txt') }} restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- + ${{ runner.os }}-pip- - - name: Install dependencies - if: steps.myCacheStep.outputs.cache-hit != 'true' + - name: Install Dependencies + if: steps.cache.outputs.cache-hit != 'true' run: | - python -m pip install -U pip - python -m pip install -r dev-requirements.txt + pip install -r dev-requirements.txt - name: Linter run: make lint