diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 8698e1c..3b1b9f6 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -29,18 +29,16 @@ jobs: with: python-version: ${{ matrix.python-version }} - - uses: actions/cache@v1 - if: startsWith(runner.os, 'Linux') - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + - name: Get pip cache dir + id: pip-cache + run: | + python -m pip install --upgrade pip setuptools wheel + echo "::set-output name=dir::$(pip cache dir)" - - uses: actions/cache@v1 - if: startsWith(runner.os, 'macOS') + - name: Pip cache + uses: actions/cache@v1 with: - path: ~/Library/Caches/pip + path: ${{ steps.pip-cache.outputs.dir }} key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- @@ -57,7 +55,6 @@ jobs: brew install autoconf automake libtool pkg-config - name: Installing package dependencies run: | - python -m pip install --upgrade pip setuptools wheel pip install wheel twine setuptools codecov pip install -r requirements.txt python setup.py bdist_wheel